Livecode repeat command -
i have bellow code , want complete following.
have group fields.
have 2 variables. variable 1 names fields , variable 2 values.
want set text fields in group variable 2.
line 1 var 1 = field name 1 -- var 2 line 1 = value
line 2 var 1 = field name 2 -- var 2 line 2 = value
repeat x=1 number of flds of grp "flds_grp" add 1 counter put short name of fld x & cr after fldnames end repeat set itemdel comma put 0 mycounter repeat each line f in fldnames repeat each line t in tvalues end repeat end repeat
you have variable counterbut seems don't need variable.
to set text of field f value of variable t, use following syntax:
set text of field f t
Comments
Post a Comment