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
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