Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to equal two Characters
Message
De
27/01/2010 16:44:21
 
 
À
27/01/2010 16:18:32
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
01446224
Message ID:
01446254
Vues:
36
>isnt that comparing strings...strings :D right right
>oddly it works but ill use = to avoid future errors
Try the following and look at results:

Var1 = "A"
Var2 = "AB"
SET EXACT ON
? "EXACT ON w/ ="
? "Case 1:", VarA=VarA
? "Case 2:", VarA=VarB
? "Case 3:", VarB=VarA
SET EXACT OFF
? "EXACT OFF w/ ="
? "Case 1:", VarA=VarA
? "Case 2:", VarA=VarB
? "Case 3:", VarB=VarA
SET EXACT ON
? "EXACT ON w/ =="
? "Case 1:", VarA==VarA
? "Case 2:", VarA==VarB
? "Case 3:", VarB==VarA
SET EXACT OFF
? "EXACT OFF w/ =="
? "Case 1:", VarA==VarA
? "Case 2:", VarA==VarB
? "Case 3:", VarB==VarA
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform