Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Repeated adds in cListObjEdit
Message
 
À
27/06/2002 12:33:03
James Lucoff
Solutions Consulting Group
San Diego, Californie, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Divers
Thread ID:
00672719
Message ID:
00673135
Vues:
14
>When I tried that it still seemed to allow adding only one record. Also, what would be the proper syntax for the Refresh statement?
>
>Thanks much for your help.

Yes, you will only be able to add one record at a time (eg. per call to ThisForm.oBizObj.New() ). If you need more records, you'll need to make more calls to New(). If it's row-buffered, you'll also have to call ThisForm.oBizObj.Save() after adding each new record. You could modify the code called by your Next button to look something like:
IF ThisForm.oBizObj.IsChanged()
   ThisForm.oBizObj.Save()
ENDIF

ThisForm.oBizObj.New()
Again, I'm assuming the table/view is row-buffered.

As far as the refresh, I'm not even sure it's necessary. If the controls don't reflect a new record (that is, they're empty), call the refresh method of the controls' container (for example, ThisForm.pgfBizObj.Page2.Refresh()).
-Paul

RCS Solutions, Inc.
Blog
Twitter
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform