min() function anomalies
Jim Ault
JimAultWins at yahoo.com
Wed Jun 13 23:16:01 EDT 2007
I use the following if the trailing delimiter is significant:
put pItem into item (the number of items in (pVar & null)) of pVar
... of course, you could use any non-delimiter char to do this since all you
want is to make Rev think there is a char in the last "item"
Jim Ault
Las Vegas
On 6/13/07 4:58 PM, "J. Landman Gay" <jacque at hyperactivesw.com> wrote:
> 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.
More information about the use-livecode
mailing list