Button Timing Problem (I think)
sarah.reichelt at gmail.com
Fri Feb 29 15:20:46 EST 2008
> The problem I'm having is that sometimes the number gets doubled (i.e.,
> two database records). What I suspect is happening is that the button
> is being pressed again (or at least Rev interprets it that way), between
> the time I check to see if it's already there and actually inserting the
> record into the database.
When I have a button that MUST not be clicked twice, because it has
already started some processing, then I just disable it in the first
line of it's script. Then re-enable it at the end of the script or any
place where you might exit the script.
More information about the Use-livecode