Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Setting value to a char variable
Message
De
24/07/2001 17:18:38
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00534227
Message ID:
00534681
Vues:
12
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform