When does a Stack Actually Die in the IDE???
Mark Smith
mark at maseurope.net
Fri Apr 14 13:37:54 EDT 2006
This isn't extensively tested, but if you have the long ID of a stack
in a variable tLongID, then
the windowID of tLongID = 0
should be true if the stack is not open
so you could have a function
function stackIsOpen tLongID
if the windowID of tLongID < > 0 then
return true
else
return false
end if
end stackIsOpen
Best,
Mark
On 14 Apr 2006, at 13:19, David Burgun wrote:
> Hi,
>
> The problem is that I only have the long id of an object, to get
> the stack name from this I have to parse the long id as a string,
> which I can do, but it's slow.
>
> Any Ideas?
>
> All the Best
> Dave
>
> On 14 Apr 2006, at 13:10, Chipp Walters wrote:
>
>> Hi David,
>>
>> Close and Delete from memory should do the trick. Instead of exists
>> (), try checking the openStacks function. I believe the engine
>> keeps track of all stacks it has opened in a given session,
>> regardless and that's why it appears in exists(). I use this
>> feature to 'relaunch' a splashscreen stack from a mainstack if i
>> need to.
>>
>>
>> best,
>>
>> Chipp
>>
>> _______________________________________________
>> use-revolution mailing list
>> use-revolution at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-revolution
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
More information about the use-livecode
mailing list