Extracting a reference to a stack

Peter M. Brigham pmbrig at gmail.com
Sat Aug 8 13:52:52 EDT 2015


On Aug 8, 2015, at 1:45 PM, Peter Haworth wrote:

> I do it like this
> 
> function stackOfObject pobject
> 
> local tObject
> 
> put pobject into tObject
> repeat
>   if word 1 of tObject is "stack" then
>      return tObject
> end if

I assume you meant to include a line "delete word 1 of tObject" at the end of the repeat loop.

-- Peter

Peter M. Brigham
pmbrig at gmail.com
http://home.comcast.net/~pmbrig





More information about the use-livecode mailing list