Progress during copy table

Progress during copy table

Postby fraxzi » Fri Jul 11, 2008 2: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
User avatar
fraxzi
 
Posts: 811
Joined: Tue May 06, 2008 4:28 am
Location: Philippines

Postby fraxzi » Sat Jul 12, 2008 6:01 am

ADS Operations Supporting Callback Functionality: Advantage Client Engine AP
Code: Select all  Expand view
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
fraxzi
 
Posts: 811
Joined: Tue May 06, 2008 4:28 am
Location: Philippines

Postby Antonio Linares » Sat Jul 12, 2008 8:15 pm

regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41366
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby fraxzi » 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" :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
fraxzi
 
Posts: 811
Joined: Tue May 06, 2008 4:28 am
Location: Philippines

Postby Antonio Linares » Mon Jul 14, 2008 6:31 am

Frances,

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

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41366
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby fraxzi » Mon Jul 14, 2008 6:03 pm

Yes Senior Antonio!

I do this...

Code: Select all  Expand view
...
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
fraxzi
 
Posts: 811
Joined: Tue May 06, 2008 4:28 am
Location: Philippines

Postby Antonio Linares » Mon Jul 14, 2008 7: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
User avatar
Antonio Linares
Site Admin
 
Posts: 41366
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

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

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


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot], nageswaragunupudi and 38 guests