Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VALID fires again after SETFOCUS
Message
 
 
À
03/01/2008 13:39:22
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01279306
Message ID:
01279308
Vues:
26
This message has been marked as the solution to the initial question of the thread.
Which VFP version you're using?

You can return a specific control in valid event in VFP9, e.g.

RETURN this.parent.txtSTAYnChildren

>On one form I force the user to follow a particular sequence of input boxes by using SETFOCUS in the LOSTFOCUS method. Typical code would look like this:
>
>    this.parent.txtSTAYnChildren.setfocus()
>    nodefault
>
>
>I have become aware that the VALID method fires again when I do this. (VFP 9)
>
>Normally this would be invisible since the VALID method has just succeeded. In one case, however, I ask the user to verify a condition in the VALID. So now the user gets asked twice to verify the condition.
>
>Can anyone confirm this? Is it SOP? Is there any way around it?
>
>BTW, I have tested placing the NODEFAULT line first and this makes no difference.
>
>Peter
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform