Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

variable decleration

Status
Not open for further replies.

Rois

Programmer
Joined
Feb 21, 2001
Messages
2
Location
IL
I want to declare a new Variable which its name is the
Value of anothere variable

for example if var b = "fff"

then i waant to make a new Variable named fff.


thanks Roi

 
you could use eval...


i dont suggest doing this, but, you could.

var b = 'fff';
eval("var "+b+" = 'blah'"); adam@aauser.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top