Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
AddObject in a Class
Message
De
23/07/2001 16:08:26
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Titre:
AddObject in a Class
Divers
Thread ID:
00534066
Message ID:
00534066
Vues:
45
I want to do AddObject in the Init of a class to add a shape for each instance during runtime:

Init Code
Local cCurrentScrollBlocker

cCurrentScrollBlocker = 'shp_' + This.Name
This.Parent.AddObject(cCurrentScrollBlocker,'Shape')
A portion of the object is derived from the current name of the class and I'm referencing using macro substitution like:

Refresh Code
Local cCurrentScrollBlocker, oRef

cCurrentScrollBlocker = 'shp_' + This.Name
oRef = 'This.Parent." + This.Name
&oRef..This.Visible = .T.
During runtime, the last line in the Refresh is causing an error. It says basically that the object for oRef does not exist. Any ideas? Thanks!

Regards, Renoir
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform