Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Setfocus on 1st (new) record not working
Message
 
À
28/03/2000 21:26:24
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00351839
Message ID:
00351910
Vues:
22
>I'm doing the setfocus() in the click event of a cmdadd. I have placed the nodefault command several places (based on info from searching other messages) with no luck. Remember, the only time it doesn't work in when the table is empty and the first record is appended. Any hints?

Jamie,

Thisform.Refresh before you SetFocus. The table is at EOF at first and EOF causes all controls that access data to be disabled and not allowed to accept focus. If you;
APPEND BLANK
Thisform.Refresh()
Thisform.text1.setfocus()
You should get what you want.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform