Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SetPrimaryBizObj does not
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Title:
SetPrimaryBizObj does not
Miscellaneous
Thread ID:
00517166
Message ID:
00517166
Views:
50
In the BizObjForm's SetPrimaryBizObj is the following code:

LPARAMETERS toBizObj

*-------------------------------------------------
*--- Store the specified business object reference
*-------------------------------------------------
This.oBizObj = toBizObj

IF This.oBizObj.lNoRecords
This.SetFilePos('NORECORDS')
ENDIF


Should not the lPrimaryBizObj Flag also be set? And the forms oPrimaryBizObj property as well? Maybe something like this:

IF !ISNULL(This.oPrimaryBizObj) AND TYPE('This.oPrimaryBizObj') == "O"
This.oPrimaryBizObj.lPrimaryBizObj = .F.
ENDIF

This.oPrimaryBizObj = This.oBizObj
This.oPrimaryBizObj.lPrimaryBizObj = .T.

should be added.

Maybe its a matter of intrepretation. I thought SetPrimaryBizObj would change the oPrimaryBizObj and set the lPrimaryBizObj flag.
Next
Reply
Map
View

Click here to load this message in the networking platform