diff --git a/harbour/ChangeLog b/harbour/ChangeLog index 21afd6bcb0..732ea26bfd 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -8,6 +8,10 @@ 2002-12-01 23:12 UTC+0100 Foo Bar */ +2004-01-29 18:30 UTC-0800 Luis Krause Mantilla + * contrib/rdd_ads/adsfunc.c + + Added 3 ADS functions: adsGetNumOpenTables(), adsShowError() and adsGetNumActiveLinks() + 2004-01-28 11:10 UTC+0100 Ryszard Glab * source/compiler/harbour.c * removed duplicated line causing memory leak @@ -49,8 +53,8 @@ *replaced '__vm*' functions with 'hb_dbg_vm*' names 2004-01-26 8:30 UTC-0800 Luis Krause Mantilla - * source/rtl/tget.prg - ! Fixed bug in get class when using "@9" picture with strings + * source/rtl/tget.prg + ! Fixed bug in get class when using "@9" picture with strings 2004-01-26 11:45 UTC+0100 Ryszard Glab * source/compiler/harbour.c diff --git a/harbour/contrib/rdd_ads/adsfunc.c b/harbour/contrib/rdd_ads/adsfunc.c index 5b9b8460cf..48dafb0654 100644 --- a/harbour/contrib/rdd_ads/adsfunc.c +++ b/harbour/contrib/rdd_ads/adsfunc.c @@ -1314,6 +1314,35 @@ HB_FUNC( ADSGETLASTERROR ) hb_retnl( ulLastErr ); } +HB_FUNC( ADSGETNUMOPENTABLES ) +{ + UNSIGNED16 pusNum = 0; + + AdsGetNumOpenTables( &pusNum ) ; + hb_retnl( pusNum ); +} + +HB_FUNC( ADSSHOWERROR ) +{ + char * pucTitle; + if( ISCHAR( 1 ) ) + { + pucTitle = (UNSIGNED8*) hb_parc( 1 ); + } + AdsShowError( pucTitle ); +} + +HB_FUNC( ADSGETNUMACTIVELINKS ) +{ + UNSIGNED16 pusNumLinks = 0; + + if( adsConnectHandle ) + { + AdsGetNumActiveLinks( adsConnectHandle, &pusNumLinks ); + } + hb_retnl( pusNumLinks ); +} + #ifdef ADS_REQUIRE_VERSION6 HB_FUNC(ADSADDTABLE)