Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP COM Design Problem
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
01214563
Message ID:
01215005
Vues:
15
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform