Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
AddObject in a Class
Message
 
 
To
23/07/2001 16:08:26
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00534066
Message ID:
00534218
Views:
14
Renoir,

Is the code in the Refresh() of the shape or the class that contains the shape? If it's the shape itself it looks like your code can simply be:

this.Visible = .t.

>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!
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Reply
Map
View

Click here to load this message in the networking platform