(counting tabbed items)

Rob Cozens rcozens at pon.net
Tue May 25 11:37:16 EDT 2004


Hi rand,

>if i want to grab the third item from the end, even
>if the last two are empty, I _know_ I can't code:
>
>   (set the itemDelimiter to tab)...
>
>   put item -3 of myLine

Why not?  Have you tried it.

Empty lines and empty items exist: in your example, "get item -1 of 
myLine" leaves "it" empty...as it should.

It's only when one deals with words where "empty" entities (ie: 
multiple contiguous spaces) are ignored.
-- 

Rob Cozens
CCW, Serendipity Software Company

"And I, which was two fooles, do so grow three;
Who are a little wise, the best fooles bee."

from "The Triple Foole" by John Donne (1572-1631)


More information about the use-livecode mailing list