Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can I suppress the valid method from firing?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Can I suppress the valid method from firing?
Divers
Thread ID:
00702841
Message ID:
00702841
Vues:
41
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
Fil
Voir

Click here to load this message in the networking platform