Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Foxpro Life
Message
De
15/04/2017 13:19:36
 
 
À
15/04/2017 13:08:14
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrats & ententes
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Network:
Novell 6.x
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01649781
Message ID:
01650228
Vues:
42
>> 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"
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform