[thechat] Visual Basic: "And", "Or" operators: Help?
Sean G.
ethanol at mathlab.sunysb.edu
Sat Oct 19 15:18:01 CDT 2002
Howdy,
Your statement is always true if harf = "A" because, well, your statement is
always true if harf = "A". In other word, (lst <> Empty Or lst <> " ") is
always true.
Either lst is empty or it isn't. If lst is not Empty, the first phase is true.
If it is empty, then it isn't = " ". The computer is just following your
direction.
What state of lst are you trying to identify?
HTH,
Sean G.
>
>> if (harf = "A" and (lst <> Empty Or lst <> " "))
>
More information about the thechat
mailing list