Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Run-Time adding properties and accessing w/o knowing nam
Message
From
23/08/1999 22:55:09
 
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00256904
Message ID:
00256915
Views:
20
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
Previous
Reply
Map
View

Click here to load this message in the networking platform