Date:  01/06/2004 04:41:26 PM Msg ID:  001798
From:  FoxWeb Support Thread:  001772
Subject:  Re: vfp &. equivalent on javascript
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?