Button Timing Problem (I think)

Sarah Reichelt sarah.reichelt at gmail.com
Fri Feb 29 14:20:46 CST 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.

Cheers,
Sarah



More information about the use-livecode mailing list