Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Validate Method
Message
 
To
20/12/1996 05:12:33
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00015679
Message ID:
00015684
Views:
32
>I have, so far, been spectacularly unsuccessful in placing code in a control's Validate(). In my latest attempt, the user inputs an item #. The Validate() SEEKs the # in the inventory table and, if not found, throws a messagebox to the screen informing the user of the problem and returning him/her to the control (RETURN(.F.)). The problem is that the Validate() method gets called three times by VFP 3.0, so I have to click thru 3 msg boxes to get back to my control.
>
You mean the Valid event, don't you? Validate is something else, for DBCs. Anyway, there are a couple of workarounds. I personally use Lostfocus for this sort of thing, it's more in keeping with the current trend in method and event usage, which seems to be away from Valid. Have you tried that?
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform