Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
AMembers() doesn't return object reference
Message
From
18/03/1998 10:14:19
Mark Hall
Independent Developer & Voip Specialist
Keston, Kent, United Kingdom
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00085338
Message ID:
00085340
Views:
26
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
Previous
Reply
Map
View

Click here to load this message in the networking platform