Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Custom Class
Message
 
 
À
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:
01366204
Vues:
8
>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.

Try
with evaluate ('this.parent.' + this.GridName)
   .AddProperty(...)
ENDWITH
Check also GetPem() function.
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform