Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Why is BizObj.Save() changing and saving all records?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Divers
Thread ID:
00563704
Message ID:
00564410
Vues:
17
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform