Try this in the message window (that's three commas with nothing betweeen
them before the word "bubba"):

temp = ",,,bubba"
put temp.item.count
-- 4

Perfect. Love it.

Now try this (that's three space characters in place of the commas):

temp = "   bubba"
the itemDelimiter = SPACE
put temp.item.count
-- 1

No, no, no. That's not right. My itemDelimiter is a space character. The
item count should be 4, just as it is with a comma delimiter.

If you access the elements of the item array, though:

put temp.item[1]
-- ""
put temp.item[2]
-- ""
put temp.item[3]
-- ""
put temp.item[4]
-- "bubba"

Confound it! That's what I want, but the count property is lying to me.

What gives?!

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Christopher Watson
Sr. Software Engineer
Lightspan, Inc.
http://www.lightspan.com/
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-


[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo.  Thanks!]

Reply via email to