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
_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution