Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
AMembers() doesn't return object reference
Message
De
18/03/1998 10:14:19
Mark Hall
Independent Developer & Voip Specialist
Keston, Kent, Royaume Uni
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00085338
Message ID:
00085340
Vues:
25
Hi Frederick,

If you need to process all member objects of some type of container, then you could iterate through the CONTROLS collection of the container.

LOCAL lnLoop
FOR lnLoop = 1 TO THIS.ControlCount
? THIS.Controls( lnLoop).Class
? THIS.Controls( lnLoop).Name
ENDFOR

or if you have only the AMEMBERS array,

lnCount = AMEMBERS( laObjs, loTestObject, 2)
FOR lnLoop = TO lnCount
lcObjName = laObjs( lnLoop)
? loTestObject.&lcObjName..Name
ENDFOR

Hope It Helps
Mark Hall
Regards
Mark

Microsoft VFP MCP
Menulib - OO Menus for VFP www.hidb.com/menulib
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform