Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Why is BizObj.Save() changing and saving all records?
Message
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Miscellaneous
Thread ID:
00563704
Message ID:
00564410
Views:
16
The Save() always comes back as FILE_OK (Which is a constant for 0), making llRetVal .T.

Also - using your suggested code with different Save() parameters (.F. for whole table update, .T. for force changes) :

*changes lActive to .F. for the current record.
REPLACE lActive WITH .F. IN (lcAlias)

*sets llRetVal = if the BizObj saved properly
llRetVal = IIF(ThisForm.cUtility.OfferDetailByBomBizObj.Save(.F., .T.) ;
= FILE_OK, .T., .F.)

Results in the same table updating, but the code actually does loop through each record in the view, updating the entire table each time. This is the first time I have seen that behaviour.

-J

>What is the llRetVal of the first save?
>
>Dan
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform