Hi Fred,
>I have started down a path where I read a number of settings from an ini file, popluate them to a custom class and I need to display them in a listbox. I do not know all of the names a head of time. When I read the ini file, I create a property and populate the value. Is there a way of programmically walking through all the properties of a class.
AMEMBERS() with zero parameters will get you an array of properties you can do a for each on, but this will also give you the properties like Enabled and Caption.
You will have to do something like,
If !Inlist(lcProp,&CC_STANDARD_PROPERTIES)
where ccproperties is a list of every possible property. I suggest you either build an array like you mentioned, or create an INIValue class based on custom and addobject to create a collection of these values. Good Luck
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement