[Gambas-user] dynamically timer gb.web.gui

Mayost Sharon sharon at 455.co.il
Wed Dec 23 21:50:15 CET 2020


Hello

When I dynamically add a timer
As the following code:

Export

Public hConsoleTimer As Timer

Public Sub WebForm_Open()

  hConsoleTimer = New Timer As "MyTimer"
  hConsoleTimer.Delay = 1000
  hConsoleTimer.Enabled = True

End

Public Sub MyTimer_Timer()
  
  WebLabel1.Text = CString(Now())

End

It went into the event
But on the page I do not see the changes of time

If I manually add a timer and put it on the WebForm it works fine.

Thanks


More information about the User mailing list