sleep function

sleep function

Postby MarcoBoschi » Fri May 26, 2023 8:04 am

Hi all I wonder if the sleep function could block a program.
I talk about a program that is active on a server without human's interactivity with an active Timer with a 60" polling.
This polling launches a function (FUNCTION POLLING() that performs a lot of things and sometimes I introduce some waits using sleep function for one minutes.

Does exist an alternative to sleep function?
Is it possible to active a second timer?

When the function polling is in execution I perform a oTimer:deactivate()
obviously at the end before RETURN here is a oTimer:activate()

Many thanks
User avatar
MarcoBoschi
 
Posts: 1015
Joined: Thu Nov 17, 2005 11:08 am
Location: Padova - Italy

Re: sleep function

Postby Antonio Linares » Fri May 26, 2023 8:34 am

Dear Marco,

Use SysRefresh() or SysWait( nValue )
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41314
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: sleep function

Postby MarcoBoschi » Fri May 26, 2023 11:11 am

8)
User avatar
MarcoBoschi
 
Posts: 1015
Joined: Thu Nov 17, 2005 11:08 am
Location: Padova - Italy


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Silvio.Falconi and 75 guests