Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to bypass Valid event
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00846883
Message ID:
00846902
Views:
37
Joshua,

set the .Cancel property of the Exit button to .T.

In your valid methods
if ( lastkey() = 27 )
   return .f.
endif

* validation code goes here
>I usually verify each field after user entry by writing the logic in the VALID event.
>
>If the user decides to click the EXIT button, while the cursor and focus is on a field with a VALID event, the Valid event logic is executed before the focus goes to the EXIT button.
>
>Does anyone have a good way of bypassing this logic? Maybe by checking at the top of the VALID logic for some occurence that the EXIT button click caused?
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Reply
Map
View

Click here to load this message in the networking platform