Arrays for lists with multiple lines where item 1 is the same on N number of lines
Mark Waddingham
mark at livecode.com
Fri Apr 22 05:50:26 EDT 2016
On 2016-04-22 11:42, Kay C Lan wrote:
> On Fri, Apr 22, 2016 at 3:59 PM, Alex Tweedly <alex at tweedly.net> wrote:
> put "43,131,6," into tStore
> put the number of items of tStore into msg
> sort items of tStore
> put cr & the number of items of tStore after msg
Here 'the number of items' is correct, it is 'sort' which breaks
'trailing delimiter rules'. Here are the anomalies we currently know
about where the engine does not follow the rules correctly:
http://quality.livecode.com/show_bug.cgi?id=14874 - revDBQueryList
http://quality.livecode.com/show_bug.cgi?id=14875 - put x into item n of
y
http://quality.livecode.com/show_bug.cgi?id=14876 - delete item x of y
http://quality.livecode.com/show_bug.cgi?id=16588 - sort breaks trailing
delimiter rules
A trailing delimiter *should* always be ignored by the engine.
A trailing delimiter *should* only be necessary if your string-list
might contain empty elements.
Warmest Regards,
Mark.
--
Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/
LiveCode: Everyone can create apps
More information about the use-livecode
mailing list