FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Pocket PC WaitSeconds()
Posts: 48
Joined: Sun Oct 30, 2005 09:29 AM
WaitSeconds()
Posted: Sat Jun 03, 2006 07:34 PM

Hello,

Is it possible to have the function WaitSeconds()?

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

Thanks

Raymond Fischbach
www.mouches.org
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: WaitSeconds()
Posted: Sat Jun 03, 2006 08:10 PM
Try

#pragma BEGINDUMP

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


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

#pragma ENDDUMP


EMG
Posts: 48
Joined: Sun Oct 30, 2005 09:29 AM
WaitSeconds()
Posted: Sat Jun 03, 2006 08:52 PM

Hello EnricoMaria,

Many thanks, I will give it a try.

Regards

Raymond Fischbach
www.mouches.org
Posts: 48
Joined: Sun Oct 30, 2005 09:29 AM
WaitSeconds()
Posted: Tue Jun 06, 2006 08:28 AM

Hello EnricoMaria,

I tried it and it works perfectly.

Many thanks,

Raymond

Raymond Fischbach
www.mouches.org
Posts: 1598
Joined: Fri Oct 07, 2005 05:56 PM
Re: WaitSeconds()
Posted: Tue May 20, 2008 08:10 AM
Dear Enrico,

Sleep( 1000 ) = ? // 1 second?

Best regards,
Dutch


Enrico Maria Giordano wrote:Try

#pragma BEGINDUMP

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


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

#pragma ENDDUMP


EMG
Regards,

Dutch



FWH 2304 / xHarbour Simplex 1.2.3 / BCC73 / Pelles C / UEStudio

FWPPC 10.02 / Harbour for PPC (FTDN)

ADS V.9 / MySql / MariaDB

R&R 12 Infinity / Crystal Report XI R2

(Thailand)
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Posts: 1598
Joined: Fri Oct 07, 2005 05:56 PM
WaitSeconds()
Posted: Wed May 21, 2008 09:16 AM

Thanks again, EMG.

Regards,
Dutch

Regards,

Dutch



FWH 2304 / xHarbour Simplex 1.2.3 / BCC73 / Pelles C / UEStudio

FWPPC 10.02 / Harbour for PPC (FTDN)

ADS V.9 / MySql / MariaDB

R&R 12 Infinity / Crystal Report XI R2

(Thailand)

Continue the discussion