>Thanks Erik.
>
>>ZOrder is a method, not a property.
>
>Do this sample:
>For nCnt=1 To ThisForm.ControlCount
> ? ThisForm.Controls[nCnt].Name
>EndFor
>
>When I add a object, I edit a TabIndex... So, I'd like get objects index by TabIndex but it's don't happend. The objects are listing by ZOrderSet...
>
>ZOrderSet is avaliable only in file FORM.SCX...
>
>Try do it:
>USE YOURFORM.SCX
>BROW FOR "ZOrderSet"$Properties
I had never heard of this property before, and so I tried your example, and found no controls in any forms with this setting.
BTW, you can get what you want by just writing a little creative code to do it:
DIMENSION aMyControls[THISFORM.ControlCount, 2]
FOR i = 1 TO THISFORM.ControlCount
oControl = THISFORM.Controls(i)
IF PEMSTATUS(oControl,"TabIndex",5)
aMyControl[i, 1] = oControl
aMyControl[i, 2] = oControl.TabIndex
ENDIF
ENDFOR
* Sort on TabOrder
ASORT(aMyControls, 2)
Now aMyControls is an array of the controls in your container sorted by TabIndex.
HTH
Erik Moore
Clientelligence