Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Foxpro Life
Message
From
15/04/2017 13:19:36
 
 
To
15/04/2017 13:08:14
General information
Forum:
Visual FoxPro
Category:
Contracts, agreements and general business
Title:
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Network:
Novell 6.x
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01649781
Message ID:
01650228
Views:
45
>> The risk is in naming variables that may conflict with field names, and your program processing the wrong values. Do
>
>That never happened to me. Just lucky I guess.
>Now I'm curious.
>Is it a risk in this case?
>
>name = "joe"
>If name = customer.name
>   exit    
>endif
>
In the given example, if there is a field called "name" in the current workarea and its value matches customer.name, then the EXIT will be performed, even if the value contained in customer.name does not match "joe".
and let's not forget also that the expression "a = b" may not return the same result as "b = a" if SET EXACT is OFF
set exact off
? "joe smith" = "joe"
? "joe" = "joe smith"
Previous
Reply
Map
View

Click here to load this message in the networking platform