>>>Has anyone noticed a change in VFP 6 SP3 with regard to programitically altering the tab order of objects.
>>>In the past .. I was sure that if you set the tab order property of a object ... that vfp would renumber all objects following it?
>>>Now it seems not to be working .. any ideas ?
>>
>>Just tried it on one of my forms, and it works as it always did including renumbering all objects following.
>
>It is most odd ... does not want to work on my system for some reason.
>I am adding a new object at runtime and then changing its taborder on
>the fly to resort it into the correct tab position ... (Only thing odd
>is that tabstop is set to .f.) will have to check it thru futher
>
>Thanks
I was referring to design time setting the tab order with the wizard. At runtime I would loop through the container's [form's?] Controls collection [ThisForm.Controls(i).TabIndex] to reset the TabIndex property. Test for the name of the object you added to make sure you set its TabIndex to the one you want.
Mark McCasland
Midlothian, TX USA