Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can I suppress the valid method from firing?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Can I suppress the valid method from firing?
Miscellaneous
Thread ID:
00702841
Message ID:
00702841
Views:
40
We're still in the process of converting from a FoxDOS system, so I know that makes things a little funny to bein with but there is still a puzzle to me.

We're running in VFP 7.0 but we still have a few data entry screens running with the old says/gets and read cycle. We do the following at the beginning of our code:

on key label F2 do pop_fields

Our pop_fields function evaluates varread() and determines if a popup should be executed on that particular field.

Example:
case varread() = "STATE"
do p_popup with ...

If in my pop_fields I say something like:

case varread() = "STATE"
= messagebox("Hello")

The valid event for STATE is not fired. However, if I actually do my popup routine (which displays a modal form showing a list of valid states) the valid event of the get field is fired.

How does the messagebox supress the valid event and can I cause the same behaviour when I call my popup form?
Next
Reply
Map
View

Click here to load this message in the networking platform