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 23:03:16
 
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00256904
Message ID:
00256917
Views:
19
Use AMEMBERS()

Example:

*!* Begin Code
CLEAR
goForm1 = CREATEOBJECT([myform]) && Creates a Form
= AMEMBERS(gaPropArray, goForm1, 1) && Array containing Form properties
DISPLAY MEMORY LIKE gaPropArray && Display the Form properties

define class myform as form
myval = [yaya]
enddefine
*!* End Code


>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.
>
>Ideas?
>
>One choice is to go back and just populate an array property but that seems too easy. I have to do things the hard way.
Previous
Reply
Map
View

Click here to load this message in the networking platform