clear fields

Mark Wieder mwieder at ahsoftware.net
Fri Jun 3 15:04:57 EDT 2005


Bob-

Friday, June 3, 2005, 10:40:06 AM, you wrote:

BH> All the text fields are called field1, field2 etc

I name all my label fields with a "lbl" prefix, so in your example:

lblField1, lblField2, etc

then:

BH> on mouseUp
BH>   repeat with x = 1 to the number of flds
      if char 1 to 3 of the name of fld x is not "lbl" then
BH>    put empty into fld x
      end if
BH> end repeat
BH> end mouseUp

...one of the joys of naming conventions...

-- 
-Mark Wieder
 mwieder at ahsoftware.net



More information about the use-livecode mailing list