Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How can I get ZOrderSet?
Message
From
21/09/1999 19:48:17
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00267221
Message ID:
00267387
Views:
18
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform