Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP COM Design Problem
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
01214563
Message ID:
01215005
Views:
21
I did now. :)

That's in interesting approach, however it requires
that the name of the calling class be hardcoded into the
code in the child.

So, the only way that an instance of Child could be
returned is through ParentClass.GetChildClass, so no other
methods could return one.

However, all said, I do like it better than a public var.

Thanks



>>The best answer that I can come up with is thus far the public var idea.
>
>Did you see my example checking the stack? I think its cleaner than using variables as flags. You can check exactly that "the one trying to instantiate me is SuchClass.SuchMethod".
>
>Regards,
Everything makes sense in someone's mind
public class SystemCrasher :ICrashable
In addition, an integer field is not for irrational people
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform