I believe this is a bug (Director 8.0/MacOS 8.6 & Windows98SE).
put xAnalyzeItems(",,I,am,a,Japanese", ",")
-- [#count: 6, #items: ["", "", "I", "am", "a", "Japanese"]]
put xAnalyzeItems("..I.am.a.Japanese", ".")
-- [#count: 6, #items: ["", "", "I", "am", "a", "Japanese"]]
put xAnalyzeItems(" I am a Japanese", space)
-- [#count: 4, #items: ["", "", "I", "am", "a", "Japanese"]]
-- [Movie script for testing]
on xAnalyzeItems sText, sDelimiter
the itemDelimiter = sDelimiter
nCount = sText.item.count
lResult = [#count: nCount]
lItems = []
repeat while true
lItems.append(sText.item[1])
delete sText.item[1]
if sText = empty then exit repeat
end repeat
lResult[#items] = lItems
return lResult
end
_____
"Watson, Christopher" wrote:
> temp = " bubba"
> the itemDelimiter = SPACE
> put temp.item.count
> -- 1
...
> put temp.item[1]
> -- ""
> put temp.item[2]
> -- ""
> put temp.item[3]
> -- ""
> put temp.item[4]
> -- "bubba"
Good luck,
Fumio Nonaka
Attain Corporation
Phone: +81-3-3255-4941
Fax: +81-3-3255-5998
mailto:[EMAIL PROTECTED]
http://www.attainj.co.jp
[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!]
- <lingo-l> Bug, or Misunderstanding? Watson, Christopher
- Fumio Nonaka
