[Solved] Not end

Post Reply
User avatar
Philippe734
Posts: 15
Joined: Sunday 16th February 2020 7:37pm
Contact:

[Solved] Not end

Post by Philippe734 » Saturday 21st March 2020 11:09am

Hello,
My program has no form and begin with a module, which start a timer within a class named stuff :
Public tTimer As New stuff As "stuffrun"
Public Sub Main()  
  tTimer.Start  
End
The timer start well, but just for one cycle, then my program is stop when the line "End" is reached of the main module. How to not stop (quit) the program and let the timer do its job until my program stop the timer ? Where to put the line below ?
...
  tTimer.Stop
...
Last edited by Philippe734 on Sunday 22nd March 2020 6:08pm, edited 1 time in total.
Linux & Android enthusiast - France

User avatar
cogier
Site Admin
Posts: 424
Joined: Wednesday 21st September 2016 2:22pm
Location: Guernsey, Channel Islands

Re: Not end

Post by cogier » Saturday 21st March 2020 12:59pm

Can you provide an example program for us to look at. I can't see what's in 'stuff'.

This works: -
tTimer As Timer

Public Sub Main()

  tTimer = New Timer As "tTimer"
  tTimer.Start

End

Public Sub tTimer_Timer()

  Print Str(Time(Now))

End

User avatar
Philippe734
Posts: 15
Joined: Sunday 16th February 2020 7:37pm
Contact:

Re: Not end

Post by Philippe734 » Sunday 22nd March 2020 6:08pm

You're right, I was in the mistake. Thanks !
Linux & Android enthusiast - France

Post Reply