Bob Sneidar bobs at twft.com
Wed Sep 28 13:05:43 CDT 2011


Oh btw if you want to allow for your own deletions, ask for a password instead of an answer dialog. Exit to top if the password does not match. But if you are trying to prevent someone from maliciously damaging your application, this won't work because they would have access to your scripts in the IDE and could clearly discern your password! I can think of ways to prevent this too, but it begins to get convoluted, at which point I begin to go back and ask why users would have access to the project in the IDE. 

Bob


On Sep 28, 2011, at 10:38 AM, Art DiVito wrote:

> I need to prevent users from deleting a control by selecting it with the pointer tool and hitting the delete key.
> According to the LiveCode dictionary (under "deletefield"), an "undo" will work for fields. However, this appears to be true for buttons, but NOT for fields. Thus,
> On deletebutton
> Answer "Can't do that!"
> send "undo" to this card in 5 milliseconds
> end deletebutton
> works fine. However, 
> On deletefield
> 
> Answer "Can't do that!"
> 
> send "undo" to this card in 5 milliseconds
> 
> end deletefield
> does NOT work.
> I don't know whether it will work for images (I need to prevent them from being deleted too).
> What can I do?
> Thanks.
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode




More information about the use-livecode mailing list