First, that should give you an error, because member(1).text evaluates to a
string. So, I don't know why it's not just throwing you an outright error.
That aside, it's because the point is that a while statement evaluates an
expression to either be 0 or non-zero; a better way might be:
repeat while (member(1).text <> "")
- Tab
At 11:09 PM 6/5/01 -0400, Slava Paperno wrote:
>Can someone please explain why this sends the movie into an infinite loop:
>
>member(1).text = RETURN
>repeat while member(1).char[1]
> delete member(1).char[1]
>end repeat
>
>In other words, why char[1] is never deleted?
>
>What I'm really after is trimming CR(LF) off a string, and it works fine
>unless the entire string is one CR.
>
>Thanks!
>
>Slava
>
>
>[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!]
>
[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!]