Pues eso, que no recuerdo como detener el flujo del programa 'n' segundos.
Muchas gracias,
xmanuel wrote:inkey( 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
Return to FiveWin para Harbour/xHarbour
Users browsing this forum: Google [Bot] and 42 guests