Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Setting value to a char variable
Message
From
24/07/2001 17:18:38
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00534227
Message ID:
00534681
Views:
13
>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
Map
View

Click here to load this message in the networking platform