Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Difference between click and valid
Message
De
19/10/2004 03:38:11
 
 
À
19/10/2004 03:19:05
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00952513
Message ID:
00952516
Vues:
7
>(Cannot call SetFocus from within a When, Valid, RangeHigh or RangeLow event )

That's "by design".
In Valid() you can return a numeric value to move the focus
RETURN 6 && jump 6 controls ahead
&& or Return -1 && whatever you want
If you want to use otherObject.SetFocus() instead, you can put your code into currentControl.LostFocus() instead of Valid()
If you have some "RETURN 0" in your Valid() now, in LostFocus() that would become "NODFEAULT"


hth
-Stefan


>hi all,
>
>i try to but this code under , at myform (page1 procedure valid) i get error message
>
>(Cannot call SetFocus from within a When, Valid, RangeHigh or RangeLow event )
>
>at procedure click it works.
>
>
>if  thisform.pageframe1.page1.text2.value="yes"
> thisform.Pageframe1.ActivePage = 4
> thisform.Pageframe1.Page4.Text1.SetFocus()
> endif
>
>thanks.
>m.qasem
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform