Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Calling SetFocus
Message
De
06/06/2002 15:19:01
Irv Adams
MSC Managed Care, Inc.
Floride, États-Unis
 
 
À
06/06/2002 14:49:11
Scott Starkey
Tindall Record Storage
Fort Worth, Texas, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00665630
Message ID:
00665648
Vues:
20
This message has been marked as a message which has helped to the initial question of the thread.
Scott:

This doesn't address why this occurred, but another way of handling the focus is to use a NODEFAULT in the Lostfocus of a control, based on a condition, and avoid the Valid method. It seems easier to follow in most cases..
Textbox.LostFocus()
If THIS.Value>Min
 Messagebox("Try Again.")
 NODEFAULT
Endif
HTH,

-Irv.

>I am getting an error that tells me that I cannot call an object's SetFocus from a When, Valid, RangeHigh and RangeLow event. What I don't understand is, I am getting this error when the SetFocus command is not actually in the Valid event. The Valid of textbox1 fires and then goes to the GotFocus of textbox2 where my textbox1.SetFocus is called.
>
>I am actually doing this same thing in another form without problems.
>
>Does anyone know where I should look next? Is the fact that the Valid was fired just before the GotFocus of the next textbox the problem?
>
>Is this too vague of an explanation?
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform