Subject Re: beginappend() Problem Fixed
From Ken Mayer <dbase@nospam.goldenstag.net>
Date Fri, 30 Jun 2023 22:15:57 -0700
Newsgroups dbase.getting-started

On 6/30/2023 9:59 PM, Lee Grant wrote:
> Ken and Mervyn,
>
> I'm glad I asked and read your comments. It made me realize the mistake
> was on me. I had forgotten, that I'm using a container around the
> buttons and there is no set rowset for the form. I call it navbar and
> it's a collection of buttons with that container from my .cc file.
>
> It's a direct call to the rowset, to provide the actions.  I fixed it by
> making the hardline connect to the rowset itself to call the rowset
> functions/methods. I had been using form.rowset...but that was an
> improper object reference, which is what the error box was giving me. :(

The nice thing is that with custom code, you can set it to use
form.rowset, and then you can assign the rowset referenced as needed. I
have forms with multiple rowsets, and when I switch (usually on a
notebook component) to a different rowset, I can change the rowset
referenced by form.rowset, and not have to alter any of the code used by
the pushbuttons. Of course, the code for those buttons is quite generic,
it's navigation/edit/append/save/etc. But by having them set to use
form.rowset, you can save yourself a lot of hassle.

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