Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to equal two Characters
Message
From
27/01/2010 17:09:33
 
 
To
27/01/2010 16:44:21
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
01446224
Message ID:
01446256
Views:
25
>>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform