Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SetFocus to a field in a Container
Message
De
27/01/2004 18:55:52
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
27/01/2004 18:43:43
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00871194
Message ID:
00871202
Vues:
19
>Hi all,
>
>I can't SetFocus to the first and only field in my container, the code is the follow,
>
>
>Method:ValorPorConta
>WITH thisform
>	.Sfcontainer1.visible=.t.
>	.Sfcontainer1.txnValorPorConta.Value=.txnSaldo.Value
>	.Sfcontainer1.txnValorPorConta.SetFocus()
>ENDWITH
>
Few possibilities here: txnValorPorConta.When returns .f.; its .GotFocus sets focus to something else; .txnSaldo.value is null (at eof?), you're calling this from a .valid, .when, .rangelow or .rangehigh methods. In the last case, you'd get an error.

So, we'd need a few more details:
- do you get an error?
- how are you calling this, from which method
- what does get the focus?

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform