Hi all. 

I’m working on a delete confirmation library. In the following script however, 
getting the short name of the selectedObject fails silently even if the script 
only stack is inserted into the front. In the message box the same line of code 
works. 

on deleteButton
   beep
   put the short name of the selectedObject into tObjectName
   answer warning \
         "Are you sure you want to delete button ā€˜ā€œ & tObjectName & "'?" \
         with "Delete" or "Cancel" \
         as sheet
   if it is "Cancel" then send "undo" to this card in 5 milliseconds
end deleteButton

Any idea why?

Bob S

_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to