Hi I want to be able to display the names of all buttons within a group in a field. I am trying with the following code:
Code: Select all
put the num of buttons of grp "CompanyType" of group "Porrima" of card 26 into num_fields
lock screen
repeat with i = 1 to num_fields
put the label of button i of grp "CompanyType" of group "Porrima" of card 26 into fld "test"
end repeat
unlock screen
However, only the name of the last button displays in the field. Obviously it appears that each time it repeats, the name of the following button is over writing the name of the previous one. Can anyone spot the problem in my code?
Thanks guys!