Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
X=y display memory
Message
From
25/10/2001 14:44:16
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00573318
Message ID:
00573321
Views:
18
>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?

Yep.

With set exact off, characters on the left hand side of the operand are compared with characters on the right hand side of the operand UNTIL THERE ARE NO MORE CHARACTERS IN THE RIGHT HAND SIDE VALUE. Help has discussion on this.

Since y has no characters, it is equal to everything when used on the right hand side of the comparison.

Jay
Previous
Reply
Map
View

Click here to load this message in the networking platform