>>
>>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).