Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP5 and _CUROBJ
Message
From
26/11/1998 17:36:46
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
26/11/1998 01:00:27
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00161344
Message ID:
00161863
Views:
55
>>
>>You have Form.ActiveControl property, Form.Controls() collection and Control.TabIndex property. And don't shout, please.
>
>
>Edward
>I tried all three commands and these are my findings. The only reason I am "bothering" you is that since you are an MVP you defnitely have more knoeledge of coding than me.
>
>Ok. Form.ActiveControl - Only gives me the active control, not the next control to move to.
>
>Form.Controls() - This gives me a number that is the order in which I added objects to the form and has no relation to the Tab order or position of the objects. So I cannot use this to find out the next tab object.
>
>Control.Tabindex - This gives me the index number of the tab order.
>
>What I need (now that I have tried these 3 commands) id the NAME of the control next in order of tab so I can SETFOCUS to it.
>
>lease, what can do this for me.

Why don't you return .f. from the control's When method? It will pass the focus to the next control. VFP doesn't give you an easy way to know the next control programmatically - you'd have to create an array of controls, sorted by tabindex, and then use it to find the next control, but you don't actually need it. Simply not allowing the control to receive focus will pass it to the next one (by tabindex order).

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform