HOw To handle large number of variables
HI,
ok here it is. I have collection of variables. now there is a calculation associated with each variable. Each variable in collection has a name too.
Now what i did is I declared a variable of same name of that of the vaiable in the collection and performed calculation and then updated/assigned the calculated value to the variable in the collection.
Now problem is that I have to write the same code for each variable in the collection.
Is there any way to minimize the code?
Is there any way I can iterate it into a loop?
Thanx.
Re: HOw To handle large number of variables
How about using arrays. The values they store can be accessed by their index
Re: HOw To handle large number of variables
but is ther a way to map these variables........
I am mean each variable has different calculation... that is mandatory , unavoidable , if store the results in an array, then how to map it to that array....
Re: HOw To handle large number of variables
you can loop through a collection using for each
Re: HOw To handle large number of variables
Not clear. :cry:
can you post some code snippets of what you are doing, so that some one can get some idea. :thumb: