Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How can I get ZOrderSet?
Message
De
21/09/1999 19:48:17
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00267221
Message ID:
00267387
Vues:
17
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform