Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Repeated adds in cListObjEdit
Message
 
To
27/06/2002 12:33:03
James Lucoff
Solutions Consulting Group
San Diego, California, United States
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Miscellaneous
Thread ID:
00672719
Message ID:
00673135
Views:
13
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform