Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Referencing Objects...IDEAS?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Divers
Thread ID:
00167801
Message ID:
00168105
Vues:
34
>Ken,
>
>> oops forgot something - remember you can always RELEASE the
>> public variables as the forms are released if you want to go
>> that way - that also gets rid of the NULLS ...
>
>Yeah, I address this in my other response... I am trying to avoid having to do things form the form side of things because the public reference will essentially be a random name (I use the class name plus a string generated from GetTickCount() so that I can open multiple forms of the same class without incident). So, to release it later I would have to store the name with the form, meaning adding a parameter to the Init of the form. I don't like doing that, because the more parameters you have the more troubles it causes during inheritance later...I always forget to pass parameters properly, so parameters can end up breaking the whole object hierarchy branch...
>
>Thanks,
>Joe Kaufman

Why your application opens so many forms? Basically, you can check for form existance and Show() it instead of initiating new instance.
Edward Pikman
Independent Consultant
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform