You can use the eval method:
var a = "day";
eval("var one" + a + " = 'something';"); |
FoxWeb Support Team support@foxweb.com email |
Sent by Ramon on 12/23/2003 11:23:51 AM:
can anyone tell me what is the equivalent of vfp "&." to javacript.
ex.
in vfp:
a = "day"
private one&a., two&a.
which says declare a private variables name, oneday and twoday.
how can i do this in javascript?