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
pmb...@gmail.com
http://home.comcast.net/~pmbrig


_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to