naming a field in a repeat loop
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- Posts: 137
- Joined: Thu Jul 24, 2008 11:22 pm
naming a field in a repeat loop
I have a field name that will change eg fld "roll2" where the 2 is the same as the repeat loop number. what is the syntax for it. I tried fld "roll&n" but it doesn't work. I know its something like that. Any assistance appreciated
-
- Posts: 344
- Joined: Tue Feb 24, 2009 6:14 pm
- Contact:
Hi,
actually, this should probably be: fld ("roll" & n). Otherwise, you get the text of fld "roll" (which doesn't exist) with n appended to it (but the script will never get that far because field "roll" doesn't exist).
Best,
Mark
actually, this should probably be: fld ("roll" & n). Otherwise, you get the text of fld "roll" (which doesn't exist) with n appended to it (but the script will never get that far because field "roll" doesn't exist).
Best,
Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
-
- Posts: 344
- Joined: Tue Feb 24, 2009 6:14 pm
- Contact:
-
- Posts: 137
- Joined: Thu Jul 24, 2008 11:22 pm