Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Run-Time adding properties and accessing w/o knowing nam
Message
De
23/08/1999 23:03:16
 
 
À
23/08/1999 21:53:15
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00256904
Message ID:
00256917
Vues:
20
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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform