FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Progress during copy table
Posts: 811
Joined: Tue May 06, 2008 04:28 AM
Progress during copy table
Posted: Fri Jul 11, 2008 02:36 AM

Hello All!

Can I use ADSRegCallBack() with ADSCopyTable()?

I need progressbar during copy table operation.

Regards,

Kind Regards,

Frances



Fivewin for xHarbour v18.07

xHarbour v1.2.3.x

BCC 7.3 + PellesC8 ( Resource Compiler only)

ADS 10.1 / MariaDB

Crystal Reports 8.5/9.23 DE

xMate v1.15
Posts: 811
Joined: Tue May 06, 2008 04:28 AM
Progress during copy table
Posted: Sat Jul 12, 2008 06:01 AM
ADS Operations Supporting Callback Functionality: Advantage Client Engine AP
AdsCreateIndex	
AdsReindex	
AdsPackTable	
AdsExecuteSQL	
AdsExecuteSQLDirect	
AdsGotoBookmark	
AdsGotoBookmark60	
AdsGotoBottom	
AdsGetRecordCount	
AdsSkip	
AdsCopyTable**
AdsCopyTableContents	
AdsConvertTable



ANYBODY with sample code? ..particularly **

I tested ADSRegCallBack() with indexing operation and it worked well.


Regards,
Kind Regards,

Frances



Fivewin for xHarbour v18.07

xHarbour v1.2.3.x

BCC 7.3 + PellesC8 ( Resource Compiler only)

ADS 10.1 / MariaDB

Crystal Reports 8.5/9.23 DE

xMate v1.15
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Progress during copy table
Posted: Sat Jul 12, 2008 08:15 PM
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 811
Joined: Tue May 06, 2008 04:28 AM
Progress during copy table
Posted: Mon Jul 14, 2008 12:30 AM
Mr. Antonio,

Thanks for the reply. I read that thread before...

ADS Callback function is only implemented in the indexing stuff, not
other ADS function uses the Callback functions since they are not
"callback" aware.



and..

xHarbour's RDD_ADS function named AdsRegCallBack implements on Windows
the ADS function named AdsRegisterProgressCallback(..) , which works only
with INDEX and REINDEX and is considered obsolete starting with ADS 8.1



So we are waiting for the fix... Now everybody hacks "adsfunc.c" :-)


My regards,
Kind Regards,

Frances



Fivewin for xHarbour v18.07

xHarbour v1.2.3.x

BCC 7.3 + PellesC8 ( Resource Compiler only)

ADS 10.1 / MariaDB

Crystal Reports 8.5/9.23 DE

xMate v1.15
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Progress during copy table
Posted: Mon Jul 14, 2008 06:31 AM

Frances,

Are you calling ADSREGCALLBACK( bCallBack ) before ADSCOPYTABLE() ?

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 811
Joined: Tue May 06, 2008 04:28 AM
Progress during copy table
Posted: Mon Jul 14, 2008 06:03 PM
Yes Senior Antonio!

I do this...

...
ADSRegCallBack({|nPercent| uProgressCallBack( nPercent ) })
....

lCopyOK := (cAlias)>( AdsCopyTable( "TempFile", ADS_RESPECTFILTERS ) )

....

ADSClrCallBack()
....


FUNCTION uProgressCallBack( nPercent )
 oRep_Gauge:SetPos( nPercent )
RETURN( .F. )



1. lCopyOK returns true and the 'TempFile' was successfully created.
2. uProgressCallBack() function was never called :-)


Regards,
Kind Regards,

Frances



Fivewin for xHarbour v18.07

xHarbour v1.2.3.x

BCC 7.3 + PellesC8 ( Resource Compiler only)

ADS 10.1 / MariaDB

Crystal Reports 8.5/9.23 DE

xMate v1.15
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Progress during copy table
Posted: Mon Jul 14, 2008 07:00 PM

Frances,

> uProgressCallBack() function was never called

Please place a MsgInfo() call inside uProgressCallBack() to check if the code execution goes through it, thanks

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 811
Joined: Tue May 06, 2008 04:28 AM
Progress during copy table
Posted: Tue Jul 15, 2008 12:24 AM

Mr. Antonio,

>Please place a MsgInfo() call inside uProgressCallBack() to check if the code execution goes through it, thanks

I already did that. :o It was really never called.

But in indexing with same construct and same uProgressCallBack() function.. It did well.

Regards,

Kind Regards,

Frances



Fivewin for xHarbour v18.07

xHarbour v1.2.3.x

BCC 7.3 + PellesC8 ( Resource Compiler only)

ADS 10.1 / MariaDB

Crystal Reports 8.5/9.23 DE

xMate v1.15
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Progress during copy table
Posted: Tue Jul 15, 2008 12:11 PM

Frances,

> But in indexing with same construct and same uProgressCallBack() function.. It did well.

Then it looks as an ADS error. If the same callback works on indexing, it should also work with AdsCopyFile()

Could you contact ADS tech support service ? thanks,

regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion