Joe Lewis Wilkins pepetoo at cox.net
Fri Aug 5 02:27:14 EDT 2011


I considered that, since I have them set to cantDelete already, but I was too concerned that in cloning them, they would retain that property.


Joe Lewis Wilkins

On Aug 4, 2011, at 11:18 PM, Shao Sean wrote:

> You can always use the cantDelete property for the master form cards..
> http://docs.runrev.com/Property/cantDelete
> # only run this after setting the cantDelete property to TRUE on the cards you want to keep
> # every other card will be deleted, so exercise caution..
> lock messages  -- suppresses the deleteCard message
> repeat for each line tCardID in the cardIDs of stack "yourStackNameHere"
>  try
>    delete card id tCardID of stack "yourStackNameHere"
>  catch tErr
>  end try
> end repeat
> unlock messages
> The try statement allows you to run the delete command on the cards that have the property set to true and not have the script stop to post an error saying that the card cannot be deleted.

More information about the Use-livecode mailing list