A slightly disturbing problem about items

Ken Ray kray at sonsothunder.com
Sat Jun 4 17:16:03 EDT 2005


> Any comment ?

Just "been there already"... :-)

We recently had a discussion about how items were looked at in xTalk. The
reason you get two different values is that in your first example, the list
if items is "1,2,3,4,5," and ends in the item delimiter (,). Since there is
nothing that follows the item delimiter, it is ignored, and returns 5 items.
The second example gives you ",1,2,3,4,5" so there are 6 items (nothing's
ignored).

Standard xTalk results... (not to say it's not 'slightly disturbing' as
you've stated)...


Ken Ray
Sons of Thunder Software
Email: kray at sonsothunder.com
Web Site: http://www.sonsothunder.com/





More information about the use-livecode mailing list