[Gambas-user] Timer

j h clangbone at ...43...
Fri Jan 27 14:51:18 CET 2017


I need help with a simple Stopwatch program in Gambas 3.9.2


The program has a form with 3 buttons and a valuebox.
Button 1 starts timer.
Button 2 stops timer.
Button 3 restarts timer.

As usual I just cannot get the syntax correct to make it work.
When I copy/paste from the help browser still not right!

I really want to like and use Gambas but am put off by the unclear help and lack of very simple examples.  

Here is where I Went delete happy then gave up.






' Gambas class file

Public Sub Form_Open()

  

End

Public Sub Timer1_Timer()

  ValueBox1.Value = Timer1
  

End

Public Sub ValueBox1_MouseDown()




End



Public Sub Button1_Click()

Timer1.Enabled = True

End



Public Sub Button2_Click()

  

End

Public Sub Button3_Click()

  

End





Any help would help.
Ta.










More information about the User mailing list