repeat in variable
Posted: Tue Mar 31, 2015 10:02 pm
In my stack i have bellow objects..
1 group with some fields and 2 variables.
Variable 1 have the field names and variable 2 have the values i want like (name1,name2,etc)
I want to get the field name from the var 1 and pass the value from var 2 into text of field.
is that possible and how to?
my code until now
1 group with some fields and 2 variables.
Variable 1 have the field names and variable 2 have the values i want like (name1,name2,etc)
I want to get the field name from the var 1 and pass the value from var 2 into text of field.
is that possible and how to?
my code until now
Code: Select all
repeat with x=1 to the number of flds of group "grp-A"
add 1 to counter
put the short name of fld x & cr after fNames
end repeat
set the itemdel to comma
put 0 into myCounter
repeat for each line f in fNames
repeat for each line t in tvalues
end repeat
end repeat