news |
info |
people |
software |
stuff |
This routine ignores the value of the cantDelete of the stack. Use with caution!
The routine does nothing if it can't find the stack, so you have to either pass the full path, or you have to be sure that its in a place that Hypercard knows about.
on FL_DeleteStack name -- deletes stack called "name" -- use with caution! -- NB: only works if it can find the stack -- (it wont put up a dialog asking where it is) -- check that stack actually exists if there is a stack name then UL_LockAndPush go stack name in a new window set the cantModify of this stack to false set the cantDelete of this stack to false DoMenu "Delete Stack..." without dialog UL_UnlockAndPop end if end FL_DeleteStack