Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Class defined in execscript() vanishes
Message
From
29/09/2007 14:20:56
 
 
To
27/09/2007 20:41:58
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP1
Miscellaneous
Thread ID:
01257351
Message ID:
01257598
Views:
17
Hi Dragan,
>I have a class defined in a .prg and compiled into an .app, which is then subclassed in a script. I'm creating an object of the parent class just in case, so it's in memory and visible by the subclass. So far so good - this part works.

what's your the use case ? I tried to guess at your needs, and about the only thing I imagined was to overwrite methods so the behaviour in the parentclass is not run - assumptions on nearly no data are unreliable<g>.

For the those cases where the inheritance can't be easisly modified or quasi-MI is needed, I usually go very standard (writing functions with an explitic toObject instead of a hidden this as first parameter) or use wrapper objects sometimes coupled with bindevent, which is great for adding, but tends to become a drag with for stopping functionality via facade and worker objects. Are you creating specialized objects with custom methods drawn from a common base ?

curious

thomas
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform