Subject |
Re: beginappend() Problem |
From |
Ken Mayer <dbase@nospam.goldenstag.net> |
Date |
Tue, 27 Jun 2023 10:18:45 -0700 |
Newsgroups |
dbase.getting-started |
On 6/27/2023 8:48 AM, Peter wrote:
> I am having a problem with beginappend() which is called if user needs to enter data for sending bill to someone other than the patient. If there a prior listing for this information, all works fine: existing data is used for datalink of billtotest.wfm.
> However, if there is no prior listing, i.e. no rowset for patient ID, form.rowset.beginappend() does not present user with a blank form. (Based on OLH, I used beginAppend() Example to carry over to the billtotest.wfm. This does not work.)
>
> Of interest is that msgbox for rowset.state is 1 (browse), not 2 (edit) in the first circumstance where prior rowset is found by findkey().
> If there is no rowset found for existing data, a msgbox for rowset.state does not show 3 (append), but shows 1.
Okay, so as you note, it is setting the rowset state to edit. You need
to figure that part out. For example, I don't see anywhere that you are
changing the state, using beginAppend(), etc. So, where are you doing
that? You're not showing enough information, code, etc. Maybe if you
tried to reduce this down to a turnkey with as many forms and a table
that showed the issue as necessary ...?
Ken
--
*Ken Mayer*
Ken's dBASE Page: http://www.goldenstag.net/dbase
The dUFLP: http://www.goldenstag.net/dbase/index.htm#duflp
dBASE Books: http://www.goldenstag.net/dbase/Books/dBASEBooks.htm
dBASE Tutorial: http://www.goldenstag.net/dbase/Tutorial/00_Preface.htm
dBASE Web Tutorial: http://www.goldenstag.net/dbase/WebTutorial/00_Menu.htm
dBASE DOS to Windows Tutorial:
http://www.goldenstag.net/dbase/DtoWTutorial/00_Menu.htm
|
|