Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
.setfocus method
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00122406
Message ID:
00122431
Vues:
19
>>>>For some reason the focus does not get set in the following:
>>>>store allt(thisform.mytextbox1.value) to mcard_nbr
>>>> SEEK MCARD_NBR
>>>> IF MCard_Nbr <> Card_Nbr .OR. DELETE()
>>>> do quickmsg with "CUSTOMER'S CARD NO. NOT ON FILE"
>>>> thisform.mytextbox1.setfocus()
>>>> thisform.refresh
>>>>
>>>>Is there a fault here?
>>>>thanks
>>>
>>>Timothy,
>>>
>>>Where is that code located?
>>in the keypress event and only executes when users hit enter (chr(13))
>
>Timothy,
>
>Are you executing a NODEFAULT so the enter doesn't get to the control and move the focus after your setfocus call?

No, how do I?
"Build a man a fire, and he's warm for a day.
Set a man on fire, and he's warm for the rest of his life."
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform