Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Custom Class
Message
De
10/12/2008 11:30:57
 
 
À
09/12/2008 11:11:09
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Titre:
Divers
Thread ID:
01366200
Message ID:
01366461
Vues:
11
>I'm creating a Custom class that will reference a sibling grid. In the INIT of the form I'm using to create the methods, etc of the Custom class, I have this line:
>
>THIS.ADDPROPERTY('DynamicRow', 0)
>
>I also will have a property on the custom class for the grid name. For example "MyGrid" might be the value. How can I rewrite that line of code to work? This does not work:
>
>THIS.Parent.(THIS.GridName).ADDPROPERTY('DynamicRow', 0)
>
>I'm sure it's simple to many of you, but I have not used many Custom classes before in this way.
ADDPROPERTY(GETPEM(THIS.Parent,THIS.GridName),'DynamicRow', 0)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform