Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Why Doesn't the 'IF Then' Work
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00265388
Message ID:
00265390
Views:
18
Because you have SET EXACT OFF. Also, get rid of the "then"...it's not evaluated.

>If I run this program, it prints "OK". Why
>
>cTest="This is a test"
>If cTest="" Then
> ?"Ok"
>EndIf
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform