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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do i make this name?

Status
Not open for further replies.

solex

Programmer
Feb 28, 2003
91
GB
Hello i want to do this:

userSlot?_so.data.name = bob;

OR

name = userSlot?.data.name;

BUT i want the ? to be replaced with the number in , userSlotID , how do i do this?

thanx in advance
solex
 
Try these (where ? is a number):

name = eval('userSlot'+?+'.data.name');

or

name=['userSlot'+i].data.name
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top