When does a Stack Actually Die in the IDE???
Richard Gaskin
ambassador at fourthworld.com
Fri Apr 14 11:08:02 EDT 2006
David Burgun wrote:
> 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.
Sounds like an opportunity for the gang here to come up with a fast way
to parse the stack name.
Here's a starting point, which clocks in at 0.1349ms on a 1GHz G4:
function ObjStack pObj
put the long id of pObj into tObj
get offset(" of stack ""e, tObj)
delete char 1 to (it+10) of tObj
get offset(quote,tObj)
return char 1 to (it-1) of tObj
end ObjStack
--
Richard Gaskin
Managing Editor, revJournal
_______________________________________________________
Rev tips, tutorials and more: http://www.revJournal.com
More information about the use-livecode
mailing list