I have several group in my card when I click any one of the group it's name is assign to a variable, My problem is if I click the fifth group first and fourth group second then the variable shows according the group are placed, eg:(if I have group like "name","address","gender" and "grade" if i click grade first and gender second then the variable shows that gender, grade my requirement is if click the last group first then it's name should placed in first). How I solve this problem

The following code I have used.
Code: Select all
repeat with i= 1 to the number of buttons in this card
if the is_group of btn i is true and the hilite of btn i is true then
lock screen
put the short name of btn i & cr after p
end if
end repeat
Shalu