Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
If, then, else
Message
From
11/03/1997 15:12:49
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
If, then, else
Miscellaneous
Thread ID:
00023771
Message ID:
00023771
Views:
70
Watching this code in the debugger reveals that even when seek evaluates to false, the else clause in not executed. Am I forgetting something? I have had this problem before and band-ais fixed it with separate 'if' statements.

if seek(my_name) = .T. then
if passwords.password = my_password then
messagebox(greeting, 0,"Log")
do login
thisform.release
endif
else messagebox("Invalid Login Attempt", 0, "Invalid")
endif
Erik Moore
Clientelligence
Next
Reply
Map
View

Click here to load this message in the networking platform