REALLY close stack

Trevor DeVore lists at mangomultimedia.com
Tue Jun 15 17:55:38 EDT 2004


On Jun 15, 2004, at 3:55 PM, Troy Rollins wrote:
> Sorry, the code example looks more like this...
>
> _________________________________________________________
>  repeat for each line tFile in tFileList
>     if there is a stack "Current Resource" then
>       set the destroyStack of stack "Current Resource" to TRUE
>       close stack "Current Resource"
>     end if
>
>       go invisible stack URL (the defaultFolder & "/" & tFile)
>       if there is a field "NameField" of stack "Current Resource" then
>
>         Put tFile & TAB & field "NameField" of stack "Current 
> Resource" after field "Resource Select List" of card "Main Interface" 
> of stack "The Program"
>       end if
>
>     set the destroyStack of stack "Current Resource" to TRUE
>     close stack "Current Resource"
>
>   end repeat

Troy,

Have you tried using delete stack "Current Resource"?  Though setting 
destroyStack is supposed to work (I think) I use delete stack in my 
code that does something similar and it works fine.


-- 
Trevor DeVore
Blue Mango Multimedia
trevor at mangomultimedia.com



More information about the use-livecode mailing list