Subject Re: How do I set up a Form for a single record
From Ken Mayer <dbase@nospam.goldenstag.net>
Date Fri, 21 Oct 2016 12:08:42 -0700
Newsgroups dbase.getting-started

On 10/21/2016 8:02 AM, Joe LeBlanc wrote:
> I'm trying to do a form to hold default values in a program.
> In another life, I would just do a form single record.
>
> Nothing like that is available in dBASE so I did regular form with 1
> blank record in the table and put 2 buttons on the form.
>
> One with "OK" that will save the record and close the form.
> The second one says "Cancel" which will just close the form without
> saving any data.
>
> For the OK button, how do I save the record and close the form.
> Something like ThisForm.close() or ????
>
> For the Cancel button, I need to simply close the fork without saving
> anything.
>
> When I design the form, I have just 1 record.
>
> The 2 buttons will either save or cancel.
>
> Also, There shouldn't be any system record menu when this form is
> active.I can't find anywhere where there is a method or property of the
> form to disable menu items.

Are you using OODML? In other words, for the form is there a query
object, and a rowset object? Are the controls set to datalink to the
fields in the table?

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