A problem with clearing fields on marked cards

DunbarX at aol.com DunbarX at aol.com
Wed Jun 9 14:16:16 EDT 2010


Charles,

I think you are almost there. But I would not use the "locktext" to 
distinguish label fields from all my other fields, for reasons already discussed. I 
would set a custom property:

if the isLabel of field u of card y is "true" then put empty into field u 
of marked card y

This is clean and unassailable.

Craig


In a message dated 6/9/10 1:03:14 PM, cszasz at mac.com writes:


> Craig,
> 
> I made some changes in my script, which works. I am carefully checking any 
> field on a marked card to see if there are problems.
> 
> Here is the revised script
> 
> on mouseUp
>    repeat with y = 1 to the number of marked cds ------> Clears fields on 
> marked cards
>       repeat with u = 1 to the number of fields of marked card y
>         
>          if the lockText of field u of card y is false then put empty into 
> field u of marked card y
>          --         if the short name of field u of marked card y CONTAINS 
> "field" then put empty into field u of marked card y
>       end repeat
>    end repeat
> end mouseUp
> 
> What do you think?
> 
> Charles Szasz
> 



More information about the use-livecode mailing list