...

View Full Version : spaces in variables



tpeck
11-04-2006, 08:27 AM
I have a line of code:

var cdate=dayarray[day]+", "+montharray[month]+" "+daym+" "+year+" "+hours+":"+minutes+":"+seconds+" "+dn+""

What I require is a bigger space here:

var cdate=dayarray[day]+", "+montharray[month]+" "+daym+" "+year+" "+" "+" "+hours+":"+minutes+":"+seconds+" "+dn+""

I tried +"xxx"+ (where the xs are three spaces) but that didn't work either.

What is the trick to this please?

Terry

_Aerospace_Eng_
11-04-2006, 08:35 AM
var cdate=dayarray[day]+", "+montharray[month]+" "+daym+" "+year+"      "+hours+":"+minutes+":"+seconds+" "+dn+""

tpeck
11-04-2006, 08:40 AM
Thanks.

I tried that but without the quotes, and so it failed. But I was thinking the text of   would show instead.

I should give up thinking!



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum