clear fields
Bob Hartley
rev at armbase.com
Fri Jun 3 14:02:37 EDT 2005
You wrote:
> Hi All
>
> I have a script that clears the contents of fields in cards.
>
> on mouseUp
> repeat with x = 1 to the number of flds
> put empty into fld x
> end repeat end mouseUp
>
> Now this works ok except that the card has some labels and the script
> clears the label contents.
>
> All the text fields are called field1, field2 etc
>
> so I thought of doing this on mouseUp
> repeat with x = 1 to the number of flds
> if the name of fld x is "field &*"
> then put empty into fld x
> end repeat end mouseUp
>
> But I don't ge tthe fields clearing. I tried variations on the "field & *"
Then I thought that since the field is number x and the fields are field1,
field2 etc then
on mouseUp
repeat with x = 1 to the number of flds
if the name of fld x is "field" & "x"
then put empty into fld x
end repeat
end mouseUp
No luck there
bob
> etc without any luck.
>
> Any ideas
>
> Cheers Bob _______________________________________________ use-revolution
> mailing list use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
More information about the use-livecode
mailing list