Click to See Complete Forum and Search --> : writing pre determined amount of spaces


damon2003
12-08-2003, 03:55 PM
Hi,
I have a variable that stores an amount.
I need to store this amount as spaces in a variable, any ideas how this can be done?
thanks

fredmv
12-08-2003, 03:57 PM
Can you maybe provide an example of how you want this to work?

damon2003
12-08-2003, 04:01 PM
Hi,
what it is I have a pop up box that displays some stuff. I want to improve the layout

total=total+productDescription+spaces+" Qty: "+quantityValue+" "+" Price: £"+priceValue+"\n";

I have counted the length of the productDescription variable. I am going to have a static value, around 50, take the length of productDescription away from 50 and use this value as the number of spaces in the variable spaces so that everthing lines up better