Can't delete cards
Posted: Sun May 05, 2013 4:15 am
G'day
I've got a stack where I'd like to remove groups of cards, but I keep getting the 'can't delete object' message.
The stack level script is called from a button on the cards to be removed, but the Dictionary says only objects containing the handler can't remove themselves.
The script follows, any guidance please?
Regards
Santa
I've got a stack where I'd like to remove groups of cards, but I keep getting the 'can't delete object' message.
The stack level script is called from a button on the cards to be removed, but the Dictionary says only objects containing the handler can't remove themselves.
The script follows, any guidance please?
Regards
Santa
Code: Select all
on scrubJob
put checkForMultipleJobCards (field "invoice number") into temp
put item 1 of temp into theNumberFound
put item 3 of temp into jobCardList
Answer warning " "&return&" WARNING"&return&return&"You are about to delete the "&thenumberfound& " cards of this job." &return&return & "Do you want to proceed?" with "Scrub 'em" or "Don't proceed"
if it = "Scrub 'em" then
repeat with x = number of lines of jobCardList to 1 step -1
put short id of card (line x of jobCardList) into keepID
set the cantDelete of card id keepID to false
go to card id keepID
delete this card
end repeat
end if
end scrubJob