Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
CBizObjMaintBase...
Message
From
05/08/1998 09:32:18
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Title:
CBizObjMaintBase...
Miscellaneous
Thread ID:
00124033
Message ID:
00124033
Views:
60
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
Next
Reply
Map
View

Click here to load this message in the networking platform