Page 1 of 1

WaitSeconds()

PostPosted: Sat Jun 03, 2006 7:34 pm
by Raymond Fischbach
Hello,

Is it possible to have the function WaitSeconds()?

Or is there a work around to wait for a defined number of seconds?

Thanks

Re: WaitSeconds()

PostPosted: Sat Jun 03, 2006 8:10 pm
by Enrico Maria Giordano
Try

Code: Select all  Expand view
#pragma BEGINDUMP

#include "windows.h"
#include "hbapi.h"


HB_FUNC( SLEEP )
{
    Sleep( hb_parnl( 1 ) );
}

#pragma ENDDUMP


EMG

PostPosted: Sat Jun 03, 2006 8:52 pm
by Raymond Fischbach
Hello EnricoMaria,

Many thanks, I will give it a try.

Regards

PostPosted: Tue Jun 06, 2006 8:28 am
by Raymond Fischbach
Hello EnricoMaria,

I tried it and it works perfectly.

Many thanks,

Raymond

Re: WaitSeconds()

PostPosted: Tue May 20, 2008 8:10 am
by dutch
Dear Enrico,

Sleep( 1000 ) = ? // 1 second?

Best regards,
Dutch


Enrico Maria Giordano wrote:Try

Code: Select all  Expand view
#pragma BEGINDUMP

#include "windows.h"
#include "hbapi.h"


HB_FUNC( SLEEP )
{
    Sleep( hb_parnl( 1 ) );
}

#pragma ENDDUMP


EMG

Re: WaitSeconds()

PostPosted: Tue May 20, 2008 8:42 am
by Enrico Maria Giordano
Yes.

EMG

PostPosted: Wed May 21, 2008 9:16 am
by dutch
Thanks again, EMG.

Regards,
Dutch