Progress during copy table

Post Reply
User avatar
fraxzi
Posts: 811
Joined: Tue May 06, 2008 4:28 am
Location: Philippines
Contact:

Progress during copy table

Post by fraxzi »

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
User avatar
fraxzi
Posts: 811
Joined: Tue May 06, 2008 4:28 am
Location: Philippines
Contact:

Post by fraxzi »

ADS Operations Supporting Callback Functionality: Advantage Client Engine AP

Code: Select all

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
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
fraxzi
Posts: 811
Joined: Tue May 06, 2008 4:28 am
Location: Philippines
Contact:

Post by fraxzi »

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" :P


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
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Frances,

Are you calling ADSREGCALLBACK( bCallBack ) before ADSCOPYTABLE() ?
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
fraxzi
Posts: 811
Joined: Tue May 06, 2008 4:28 am
Location: Philippines
Contact:

Post by fraxzi »

Yes Senior Antonio!

I do this...

Code: Select all

...
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,
Last edited by fraxzi on Tue Jul 15, 2008 3:46 am, edited 1 time in total.
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
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

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
User avatar
fraxzi
Posts: 811
Joined: Tue May 06, 2008 4:28 am
Location: Philippines
Contact:

Post by fraxzi »

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
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

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
Post Reply