Looping over all buttons

Mark Smith Mark_Smith at cpe.umanitoba.ca
Wed Feb 22 11:49:30 EST 2012


Hi, I have 38 buttons on a form that I need to copy their hilite value to a
temporary variable. Is it possible in LC to do something like

for x = 1 to the number of buttons on card y
   put the hilite of btn"x" into tButtonx
end

instead of writing out manually, 38 times:

   put the hilite of btn"fhHypertension" into tButton4
   put the hilite of btn"fhDiabetes" into tButton5
etc

Thanks

-- Mark

--
View this message in context: http://runtime-revolution.278305.n4.nabble.com/Looping-over-all-buttons-tp4410980p4410980.html
Sent from the Revolution - User mailing list archive at Nabble.com.




More information about the use-livecode mailing list