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

Variables as name

Status
Not open for further replies.

MrMoocow

Programmer
May 19, 2001
380
US
Hi i have a variable newspot and it holds the name of a variable (in the first case its g2) the variable has an x and a y property.

how do i basicaly say

newspot.x

is there a way to use a variable as a name?(or a easier exzmple there is 3 images named 1 ,2 , and 3 0 select them u use the varable num.left where num is either 1 2 or 3).


This has been wracking my brain.
 
Take a look at the CallByName function. - Jeff Marler B-)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top