Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Valid check prevents form exit
Message
From
31/01/2002 16:48:32
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00613711
Message ID:
00613721
Views:
8
Richard,

Check out thet releaseType property...
* textbox.valid() method
if thisform.releaseType = 0
	* put validation code here
else
	* user hit close box or wants to exit VFP
endif
>I'm pretty certain that this problem must have been brought up in the past, but I will risk being annoying and ask it anyway :)
>
>I have a form with a page frame with several tabs. Each of the tabs is a separate data entry screen. My problem is that if I want to either move between tabs, close the form, or save existing data by clicking on a "Save" button which runs a save routine, if the cursor is in a field which has a Valid method check and that check returns .F., I am unable to exit that tab until I have entered correct data. In some cases, the reason for moving to another tab is to get that data, so I end up having to exit the application entirely or in extreme cases close the application with Task Manager.
>
>How do I bypass a Valid method when I click on a button? I hope this explanation of the problem is clear enough.
>
>TIA
>
>Richard Bates
Steve Gibson
Previous
Reply
Map
View

Click here to load this message in the networking platform