General information
Category:
Coding, syntax & commands
>Jonathan,
>
>? 1 == 2
>? 1 == 1
>
>works just fine.
>
>>AFAIK, the double-equals is used for string comparison only (check the help file) and the "then" is not part of the IF syntax
>
>And THEN is an optional clause for the IF statement.
Doh! now that I look at it, you're right :-)
I would (should) have checked but my home computer doesn't have VFP installed. Not an excuse, but a reason. :-) Thanks for the correction, I forgot to check up on it when I got to work.
The help file states: "The == operator can be used when an exact comparison of character strings is needed." I took the wording a certain way.. I guess when they say "can be used" it doesn't exclude comparing numbers as well..
---
Jonathan Chan
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only