Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
CBizObjMaintBase...
Message
De
05/08/1998 09:32:18
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Titre:
CBizObjMaintBase...
Divers
Thread ID:
00124033
Message ID:
00124033
Vues:
59
I am using the above form. We want to create a simmilar form to BizObjMantainenceForm but without the buttons, we are putting a tool bar at the top of the form.

So, I subcalled cBizObjMaintBase and added cGridList to it.

Problem is that when I do this, and the grids afterrowchange method runs, there is not a proper reference to the Business Object in cgridlist1.oBixObj...

I looked around, and found that in the cbizobjmaintenance form the init of the forms puts the Business Object reference into that property of the grid.

My question is, can't this be a bit more encapsulated. For example, in the afterrowchange of the grid, instead of using this.oBizObj.getalias(), can't you do a thisform.oBizObj.getalias() ???

This way... cGridList can be dropped on a form, and you won't have to add code to the form for it to work.

Or, perhaps the grids init() can populate it's own oBizObj property.

I just don't think as it is it is well encapsualted.

BOb
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform