min() function anomalies

J. Landman Gay jacque at hyperactivesw.com
Wed Jun 13 19:58:18 EDT 2007


Brian Yennie wrote:
> Just for fun, an alternate method which never leaves trailing commas and 
> respects the itemDelimiter:
> 
> on AddItem @pVar, pItem
>     if (pVar is not empty) then put the itemDelimiter after pVar
>         put pItem after pVar
> end AddItem

And then there's the ever so easy to use:

  put pItem into item (the number of items in pVar) + 1 of pVar

which hardly anyone uses because it's such a pain to type. But I've 
started using it again lately because if you do it that way, you don't 
have to worry about leading, trailing, or any other kinds of delimiters. 
The engine handles it all and it just works.

-- 
Jacqueline Landman Gay         |     jacque at hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com



More information about the use-livecode mailing list