On 20 Aug 2006, at 09:19, Jim Ault wrote:
Major Caveat! the item in Rev does not always mean what you may think it should. The number of items in "a,b,c,d,e,f,g" is 7 The number of items in "a,b,c,d,e,f," is 6 The number of items in "a,b,c,d,e,," is 6 The number of items in "a,,,,,," is 6 It is the same with cr's (lines) The trailing comma is not counted as delimiting an empty item.
This is true. And it's also worth noting that this might surprise you when using negative indices.
So as well as Jims counting examples, get item -1 of "a,b," -- returns "b" whereas when getting and setting items by positive index get item 3 of "a,b," -- returns empty (as you'd expect) put "a,b," into tLine put "d" into item 4 of tLine -- leaves tLine as: "a,b,,d" Best, Mark _______________________________________________ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution