General information
Category:
Coding, syntax & commands
Title:
Creating an array of objects - can it be done?
Does anyone know of a way to create, at runtime, an array of the objects which are contained on a form? I'm looking for a function which will run something like this:
laFormObject = AOBJECTS(THISFORM) && pass the name of the form or any other container object (page from a pageframe would be another possibility)
and the resulting array would appear something like this:
laFormObject[1,1] = "lblName" && Object name
laFormObject[1,2] = "Label" && BaseClass
laFormObject[1,3] = "m2mLabel" && Class
laFormObject[2,1] = "txtLName" && Object name
laFormObject[2,2] = "TextBox" && BaseClass
laFormObject[2,3] = "m2mText" && Class
and so on.
The specific information I need is the object name and the object class, base class, or parent class. Better yet would be a parameter on the function which would only return objects of a particular type or class. I need a list of all of the text boxes and command buttons on a form.
Bill Yater
Made2Manage Systems, Inc.
Software Development, Windows Application Team
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only