Leo75
February 24th, 2009, 10:13 AM
Hi there…
I am trying to create dynamic variables.
Lets say:
I read a file where I have: building, restaurant and hotel.
Then, will load those values like…
X = building.
Y = restaurant
Z = hotel.
Now I want to create variables like: building._alpha = 0; restaurant._alpha = 0; hotel._alpha =0;
So on…
I guess the question is how to use the value (building, restaurant, hotel) on naming or creating variables to use them later…
Thanks.
Cheers.
Leo.
I am trying to create dynamic variables.
Lets say:
I read a file where I have: building, restaurant and hotel.
Then, will load those values like…
X = building.
Y = restaurant
Z = hotel.
Now I want to create variables like: building._alpha = 0; restaurant._alpha = 0; hotel._alpha =0;
So on…
I guess the question is how to use the value (building, restaurant, hotel) on naming or creating variables to use them later…
Thanks.
Cheers.
Leo.