Help! Deleting a field

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: Klaus, FourthWorld, heatherlaine, kevinmiller

Post Reply
wetThumbs33
Posts: 1
Joined: Sat Dec 11, 2021 9:35 pm

Help! Deleting a field

Post by wetThumbs33 »

Hello all, I''ve been just a lurker here and have a question I'm hoping I might get help with. Is there any reason why a field can't be deleted by script all of a sudden? I have a few fields being moved to point A to point B with the "move" command and at the end of the moves they are each removed with the "delete" command, but just one of these fields will not delete.

I get an error: card "Dash": execution error at line n/a (Object: stack locked, or object's script is executing) near "field "temp11" of card "Dash" of stack "/Users...

I can delete it manually or by stopping the script and sending the command through the message window. It's driving me nuts, about to give up after coming so far.
dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10509
Joined: Wed May 06, 2009 2:28 pm

Re: Help! Deleting a field

Post by dunbarx »

Hi.

Odd. Can you post your script?

Craig
jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7423
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: Help! Deleting a field

Post by jacque »

Where is the script located? If it's in the field, it can't delete itself.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10430
Joined: Fri Feb 19, 2010 10:17 am

Re: Help! Deleting a field

Post by richmond62 »

If it's in the field, it can't delete itself.
That seems unlikely as the chap states it is only one of the fields that won't go "poof".
jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7423
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: Help! Deleting a field

Post by jacque »

True. Maybe its cantDelete is set to true.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
Post Reply