Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Business object as member object
Message
De
31/03/2003 15:18:44
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Titre:
Business object as member object
Divers
Thread ID:
00772133
Message ID:
00772133
Vues:
46
I have a business object which is a custom class and which creates a private session object and maintains an object reference to it.

I have a form with a data bound grid.

SCENARIO #1

I Create my business object in the form's load and maintain an reference to it in a form level property.

I call Thisform.business object.OpenDataDoSomethingCloseDataReturnValue() anytime after form's INIT.

Life is good.

SCENARIO #2

My business object is added as a member object at design time.

I call Thisform.business object.OpenDataDoSomethingCloseDataReturnValue() anytime after form's INIT.

Life is bad.

Grid has reconstructed and is now useless.

There is a clue in there somewhere but I am failing to see it.
Can anyone help me with this.
Barry Taft
i am only worried in the short term. once there is a problem, the solution usually presents itself.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform