Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
X=y display memory
Message
 
À
25/10/2001 14:45:18
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:
00573337
Vues:
21
>>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?
>
>Yes.
>
>From help:
>
>However, when you compare character expressions with the = operator, the results might not be exactly what you expect. Character expressions are compared character for character from left to right until one of the expressions isn't equal to the other, or until the end of the expression on the right side of the = operator is reached (SET EXACT OFF), or until the ends of both expressions are reached (SET EXACT ON).

OK, I see the light. Now I've got to have this fact transferred from my cerebrum into my memory when I do programming.It's one more thing to worry about. Thanks all for enlightening me.
PS Nadya, I get depressed when I read your signature quote.

-TB
"Build a man a fire, and he's warm for a day.
Set a man on fire, and he's warm for the rest of his life."
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform