Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Make a cmd-button get a textbox to have the focus.
Message
De
30/11/1997 16:14:19
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00062938
Message ID:
00062951
Vues:
39
>>>I'm new to VF5. What string of code must I type? Must I put it in the command button click event?
>>
>>In the click event of the command button you could put
>>
>>thisform.textbox.setfocus()
>>
>>It depends on the hierarchy of your objects.
>
>Thanks, I have just tried this, and it works. However, how do I get the text from the previous search to be cleared?

try
thisform.textbox.value = ""
thisform.textbox.setfocus()
*If the textbox is not refreshing properly. Add
thisform.textbox.refresh()

HTH
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform