>
> ------- METHOD 1, PRODUCES ERROR ------------
>
> txt = "Andy*is*cool"
>
> the itemDelimiter = "*"
>
> put txt.item[1]
> -- "Andy"
>
> put txt.item[1].char[3]
> -- "d"
>
> txt.item[1].char[3] = "B" -- this produces the error, "Wrong Type"
>

Yeah it's a wierd one, yet it works if you modify your last line as seen
below:

-----------------------------
txt = "Andy*is*cool"

the itemDelimiter = "*"

put txt.item[1]
-- "Andy"

put txt.item[1].char[3]
-- "d"

put "B" into txt.item[1].char[3] -- MODIFIED LINE

put txt
-- "AnBy*is*cool"
----------------------------

The direct access to the cast member's text in your second example is weird
and wonderful though. Too bad it is not consistant with the first example
you gave. Just a lingo quirk I guess.





[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