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

Click here to load this message in the networking platform