Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SetFocus to a field in a Container
Message
From
27/01/2004 18:55:52
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
27/01/2004 18:43:43
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00871194
Message ID:
00871202
Views:
18
>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform