General information
Category:
Coding, syntax & commands
Title:
Can I suppress the valid method from firing?
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only