Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using == vs =
Message
From
06/11/2015 03:38:01
Walter Meester
HoogkarspelNetherlands
 
 
To
06/11/2015 03:25:58
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01627149
Message ID:
01627151
Views:
85
>>Just encountered a bug in our software releated to the use of = when set exact is set to off.
>>
>>I Know I should be using == in those cases where comparing strings of different lenght, but just a small test made me wonder.
>>
>>Is there any reason I should not use == for any comparison in VFP? It seems to work for any datatype.
>>
>>Is there any gotcha using == as a standard?
>>
>>
>>Walter,
>
>Not that I am aware of, I know people who do that all the time in order to differentiate assignments from comparisons.

Which I find a good argument in itself. I just wonder why it has taken me more thaw 20 years to draw that conclusion.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform