Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
X=y display memory
Message
De
25/10/2001 14:53:05
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00573318
Message ID:
00573328
Vues:
22
>I came across a phenomena I'm not sure I was aware of. I had to track it down like a detective to find the source of the problem.
>
>2 variables with set exact =OFF
>x="E-01268001"
>y=""
>and I type "?x=y" and it returns .T. !!!
>is this normal behavior?

In addition to what others have said, if you need an exact comparison (regardless of the setting of SET EXACT) you can use the == operator:
?x == y   && returns .F.
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform