The best way to click a button programaticaly is not to click it at all. Move the code out of the button and call it from anywhere you need to
>I'm trying to get this to work for me.
>
>
>* TIMER BUTTON CODE
>PRIVATE timevar,cbutton
>timevar = "13:15:00"
>cbutton = "Command62"
>DO WHILE TIME() <> timevar
>loop
>ENDDO
>thisform.cbutton.click
>
>
>And of course c.button is giving me trouble. I've tried quotes, brackets and m. variations with no success.
>How can I get c.button to automatically click while I'm sleeping?
--sb--