Hello All!
Can I use ADSRegCallBack() with ADSCopyTable()?
I need progressbar during copy table operation.
Regards,
Progress during copy table
Progress during copy table
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
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
ADS Operations Supporting Callback Functionality: Advantage Client Engine AP
ANYBODY with sample code? ..particularly **
I tested ADSRegCallBack() with indexing operation and it worked well.
Regards,
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
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
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Mr. Antonio,
Thanks for the reply. I read that thread before...
and..
So we are waiting for the fix... Now everybody hacks "adsfunc.c"
My regards,
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
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
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Yes Senior Antonio!
I do this...
1. lCopyOK returns true and the 'TempFile' was successfully created.
2. uProgressCallBack() function was never called
Regards,
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
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
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Mr. Antonio,
>Please place a MsgInfo() call inside uProgressCallBack() to check if the code execution goes through it, thanks
I already did that. It was really never called.
But in indexing with same construct and same uProgressCallBack() function.. It did well.
Regards,
>Please place a MsgInfo() call inside uProgressCallBack() to check if the code execution goes through it, thanks
I already did that. 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
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
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact: