???? self.control(x).Name.HasHeading // properties of self.control(x).name, in this case a listbox

endif

endifnext x

My goal is to read and write object properties programmically, place object properties in a database. If you can iterate through all of the controls using control, how do you access the control properties without spelling out listbox1?

Or use Introspection.. This code is from the macoslib project, but works on Cocoa, Windows and Linux builds.. Use the HasProperty function to determine if the object (control) has the property and if it does, use the PropertyValue function to the get the property's value.. Please note that this will work even if you do not cast the control to the proper type..

Function HasProperty(extends obj asObject, wantedProperty asstring) Asboolean//# Returns true if the object has the given property name