Information générale
Catégorie:
Codage, syntaxe et commandes
Titre:
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?
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement