Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to process instance of class
Message
De
05/01/2005 19:16:39
James Blackburn
Qualty Design Systems, Inc.
Kuna, Idaho, États-Unis
 
 
À
05/01/2005 17:42:28
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Divers
Thread ID:
00974523
Message ID:
00974568
Vues:
16
for each loControl in thisform.controls 
    if vartype(loControl) == "O"
          ?loControl.name
     endif 
next 
>Yes, but how do I reference a member in code? With a subscript of some sort? And if it is a case of a custom class, what is the collection a collection of? Suppose I have cl_xyz, an instance of a clss with 2 properties and 2 methods. How do I loop thru cl_xyz to get the names of the properties and their values? Here is what I want to do:
>
>for i = 1 to count of members
> if member[i] is a property
> variable1 = property name
> variable2 = property value
> else
> no action
> endif
>next
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform