can't delete a card

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2729
Joined: Sat Dec 22, 2007 5:35 pm
Contact:

can't delete a card

Post by jmburnod » Wed Apr 30, 2025 3:08 pm

Hi All,
First time I get this issue.
I can't delete a card, cantdelete prop is false.
I can delete others cards of the same stack.

Thanks again for help

Best regards
Jean-Marc

OSX 13.5, LC 9.69
https://alternatic.ch

Klaus
Posts: 14183
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: can't delete a card

Post by Klaus » Wed Apr 30, 2025 3:55 pm

Hm, can you try to delete the card with the message box like:

Code: Select all

delete card X;put the result
Maybe that will give us a clue?

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2729
Joined: Sat Dec 22, 2007 5:35 pm
Contact:

Re: can't delete a card

Post by jmburnod » Wed Apr 30, 2025 4:46 pm

Salut Klaus,
Thank You again
I get this:
Message execution error:
Error description: Object: stack locked, or object's script is executing
Hint: group "grListesPictos" of card "Ajeter" of stack "/Users/jean-marcburnod/Documents/EEpOK/EepFrEn211.livecode"

I see that cantdelete prop of group "grListesPictos" of this cd is true.
I think I have to set this for each groups after checked if a group is shared = true or backgroundBehavior =true

All the best
Jean-Marc
https://alternatic.ch

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10309
Joined: Wed May 06, 2009 2:28 pm

Re: can't delete a card

Post by dunbarx » Wed Apr 30, 2025 7:10 pm

Jean-Marc.

It's always something. In your case here, and my recent one, it was a property that was set that neither of us knew about. Not LC's fault, though. :wink:

Craig

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2729
Joined: Sat Dec 22, 2007 5:35 pm
Contact:

Re: can't delete a card

Post by jmburnod » Thu May 01, 2025 11:59 am

I removed all groups from the card and was able to delete the card.
Kind regards
Jean-Marc
https://alternatic.ch

Post Reply