Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is VFP9 Help on Set Ansi wrong or what?
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Title:
Is VFP9 Help on Set Ansi wrong or what?
Miscellaneous
Thread ID:
01014326
Message ID:
01014326
Views:
50
Check out VFP9 (and maybe in previous versions) Help for Set Ansi and you get a section that sez this:

***********************************
In the following example, when SET ANSI is set to ON, the result is False (.F.) because when padded, 'Tom' becomes 'Tom ', and the strings 'Tom ' and 'Tommy' do not match character for character:

Copy Code
'Tommy' = 'Tom'


The == operator uses this method for comparisons in Visual FoxPro SQL commands.

In the following example, when SET ANSI is set to ON, the result is True (.T.) because the comparison stops after 'Tom':

Copy Code
'Tommy' = 'Tom'
***********************************

Is this, like, really bad documentation or what? Or am I just plain dumb?
Next
Reply
Map
View

Click here to load this message in the networking platform