>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 -