Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to equal two Characters
Message
De
27/01/2010 17:09:33
 
 
À
27/01/2010 16:44:21
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:
01446256
Vues:
26
>>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

WOnt that give an error VarA isnt declared or VarB
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform