I like everyone's responses. The only thing I can think of is something I used to do in FPD26. Set a form property when the code starts running and set it back when the code is finished. Check the value of it at the beginning of the code run and run the code in the click method if it is false (not running already), otherwise return.
Tracy
IF THISFORM.lrunning
RETURN
ELSE
THISFORM.lrunning=.T.
ENDIF
THISFORM.lrunning=.F.
Just a thought,
Tracy
>I have one employee with a slight disability and he
>regularly will double click instead of single click.
>
>On the first line of the commandbutton Click() method:
> this.enabled=.f.
>then I re-enable it on the last line after doing some processing.
>The DoubleClick() method has no code.
>The Click() method is still running twice.
>
>How do I get VFP to ignore accidental subsequent Clicks?
>
>Thanks in advance.
>
>Dennis Schuette
>McElhaney Cattle Co.
.·*´¨)
.·`TCH
(..·*
010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"