Pues eso, que no recuerdo como detener el flujo del programa 'n' segundos.
Muchas gracias,
Un Saludo
Carlos G.
FiveWin 25.12 + Harbour 3.2.0dev (r2502110321), BCC 7.7 Windows 11 Home
Pues eso, que no recuerdo como detener el flujo del programa 'n' segundos.
Muchas gracias,
Un Saludo
Carlos G.
FiveWin 25.12 + Harbour 3.2.0dev (r2502110321), BCC 7.7 Windows 11 Home
inkey( n )
xmanuel wrote:inkey( n )
Un Saludo
Carlos G.
FiveWin 25.12 + Harbour 3.2.0dev (r2502110321), BCC 7.7 Windows 11 Home
Carlos -> SysWait( <n> )
#Define IsFw() .t.
FUNCTION MiSleep( nSeconds, nInitial, lSysRefresh,;
bCondicionSalida;
)
IF nInitial == NIL .OR. VALTYPE( nInitial ) != "N"
nInitial := SECONDS()
ENDIF
if lSysRefresh == NIL
lSysRefresh = IsFw()
endif
// correct for running at midnight
IF nInitial + nSeconds > 86399
nInitial -= 86399
* Wait until midnight
DO WHILE SECONDS() > 100 // no problem with a _very_ slow machine
ENDDO
ENDIF
// calculate final time
nSeconds += ninitial
// Loop until we are done
DO WHILE ( SECONDS() < nSeconds )
IF lSysRefresh
SysRefresh()
ENDIF
*
IF bCondicionSalida != NIL .AND. Eval(bCondicionSalida)
EXIT
ENDIF
ENDDO
RETURN NIL