SysWait() problem. - SOLVED
Posted: Sat Mar 01, 2025 9:50 am
Hi,
I looked for the source code of the SysWait function in the Fwh source codes directory, but I could not find it. I guess it could be in the harbour. I found a source code shared by Enrico in an old topic on this forum. Is this code the code we use in our applications?
If yes, I think there is a problem here. When the time changes from 23.59 to the next day, the function enters an infinite loop and crashes the application. Has anyone had this problem? How can we solve it?
I looked for the source code of the SysWait function in the Fwh source codes directory, but I could not find it. I guess it could be in the harbour. I found a source code shared by Enrico in an old topic on this forum. Is this code the code we use in our applications?
Code: Select all | Expand
function SysWait( nLong )
local nSeconds
DEFAULT nLong := .1
nSeconds := Seconds() + nLong
while Seconds() < nSeconds
SysRefresh()
end
return .t.