Repeat variable name changing

-= JB =- sundown at pacifier.com
Sat Mar 8 08:39:20 EST 2008


You could always create a new variable and then put the
contents of the old variable into the new one then delete
the old one.

But if you explained what you are trying to accomplish
someone on the list might provide a way you haven't
thought of yet.

-=>JB<=-



On Mar 8, 2008, at 5:27 AM, Jim Hamlyn wrote:

>
> Hi Folks,
>
> Sorry for the basic question – I just can’t seem to find a solution  
> in the
> documentation. I’m trying to change the name of a variable on the  
> fly during
> a repeat loop eg:
>
>  repeat with tCount = 1 to the number of lines in fld "myField"
> Here I’d like myVariable1 to increment/iterate the last character  
> (number)
> of its name for each loop of the repeat
>
> How is this done?
>
> Many Thanks in advance
>
> Jim Hamlyn
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your  
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>




More information about the use-livecode mailing list