Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Instances of Object
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00588767
Message ID:
00588781
Views:
16
This message has been marked as a message which has helped to the initial question of the thread.
>Is there a way to tell what all objects are instantiated, like oObject=CREATEOBJECT("FORM"). I tried to use AINSTANCE(), but has to be provided with particular object reference. With AINSTANCE() I will have to rigth a loop code to drill down. I would like to create a list of all the instantiated objects.
>
>Thank you,

from the vfp - help
Objects Collection
Applies To : application object, _vfp system variable

An array to access objects in an Application object.

Syntax
ApplicationObject.Objects(nIndex)

Settings
nIndex

Uniquely identifies an object in the Application object. Note that nIndex might not correspond to the order in which the objects were created.

Remarks
The Objects collection can be used to determine the current objects for an Application object. The Column, Container, Control, Custom, Form, FormSet, Page, and Toolbar objects have collections, and these collections may appear in the Debug window.

--------
Some thing like :

for each oref in _vfp.objects
? oref.name && display the name of the object
? oref.baseclass && display the baseclass of the object
endfor

would give you access to every instantiated obect at runtime

This help?
Alek
Alek Massey
- The only stupid question is one left unasked -
Previous
Reply
Map
View

Click here to load this message in the networking platform