Subject Re: pushbutton It was a bug in 11 that has been resolved now
From Akshat Kapoor <akshat.kapoor@kapoorsons.in>
Date Mon, 8 Mar 2021 19:21:26 +0530
Newsgroups dbase.getting-started

Good Evening Ken,Andy, Edward,Mervyn, Mustansir,

>> I am using DBASE 11
>
> As others have noted, this seems to be a problem with dBASE Plus 11, but
> it may have been fixed in later versions. The folk at dBASE aren't
> fixing bugs in older versions of the software, so ...

Sorry for changing the subject line but I could think of no better way
to communicate to all following the thread.

Pushbutton firing thrice when accelerator keys are used was a bug in 11.x
I was the person who had reported it but do not remember the number.

It was resolved in 12.

The only workaround is to compare the timing between 2 firings. If less
than a stipulated time then bypass.

Since I had purchased 12 and this bug was not there so I deleted all the
code that was there related to this issue.
It could be something like


function push_onClick
   if seconds() - form.last > 1
        form.last = seconds()
        the usual code that was to be executed
        
   endif
Return

form.last will have to be initialised in form_onOpen event.
The above code WILL need some working.

Regards
Akshat