Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
AddObject in a Class
Message
From
23/07/2001 16:08:26
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
AddObject in a Class
Miscellaneous
Thread ID:
00534066
Message ID:
00534066
Views:
44
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
Next
Reply
Map
View

Click here to load this message in the networking platform