Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DoDefault() not executing
Message
From
07/07/2000 14:25:53
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00389357
Message ID:
00389618
Views:
17
The code in the dodefault() section returns control to the valid method, even if there is a Return 0, and will process the rest of the code in the valid method. Therefore the code in the Dodefault section is ineffective.

My workaround is to initialize a variable prior to calling the DoDefault(). If the DoDefault results in a return 0, the variable is set to .f.. There is code in the valid statement immediately after the DoDefault which returns 0 if the variable is .f.

This works but is there an easier way?
Previous
Reply
Map
View

Click here to load this message in the networking platform