Subject Re: Incrementing a value OnClick
From Ed <iot2040test@gmail.com>
Date Mon, 20 Nov 2023 09:34:58 -0500
Newsgroups dbase.getting-started

Thanks both - sounds like I'd better break out the tutorial rather than just launching myself at it!

Ken Mayer Wrote:

> On 11/20/2023 3:56 AM, Ed wrote:
> > Hi,
> >
> > I'm brand new to dbase and could do with some pointers. I've made a new DB called WEF1 and a tabled called T1. The table has three columns - name (character) and two columns called STR and DEF (both two digit numeric values).
> >
> > There are two people - "Bob" and "Fred" who both have a couple of random values for STR and DEF.
> >
> > I've made a form with a browser object and pointed it at T1 and it is all good.
> >
> > I've put a button on the screen and all I want it to do is increase, say "Bob"s STR by one each time I click it. I've almost no idea how to even begin this.
> >
> > Any examples or pointers would be appreciated.
>
> Ed --
>
> Seriously suggest you take the time to do something like run through the
> dBASE tutorial. The BROWSE object is not the best way to go here, you
> should be using a form. You can then hook a SPINBOX component on the
> form to the STR field. This has arrows for up and down, and clicking
> those will increment and decrement the value in the field.
>
> See the signature block below for details ...
>
> 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
>