Page 1 of 1
naming a field in a repeat loop
Posted: Tue Jul 07, 2009 6:20 am
by Glenn Boyce
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
Posted: Tue Jul 07, 2009 6:45 am
by shadowslash
Hi Glenn Boyce,
Try this one:
fld "roll" & n 
Posted: Tue Jul 07, 2009 8:22 am
by Klaus
Hi Glen,
you MUST put it in parentheses to avoid a "can't find object" error!
...
fld ("name" & N)
...
Best
Klaus
Posted: Tue Jul 07, 2009 8:22 am
by Mark
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
Posted: Tue Jul 07, 2009 3:19 pm
by shadowslash
Ohhhhh right right right! Forgot to include parenthesis...

Posted: Tue Jul 07, 2009 9:22 pm
by Glenn Boyce
Thanks team. Got it. I knew there was a simple way of doing it.