Have any function to use instead of cm...() for ADS?

Post Reply
User avatar
dutch
Posts: 1395
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand

Have any function to use instead of cm...() for ADS?

Post by dutch »

Dear All,

I've used cmfilter() with dbfcdx (Comix/Clipmore) but now I move to
xHb&FWH&ADS. Is the cm....() compatible with ADS? If not, what I gonna use
filter for ADS?

Thanks in advance for any idea and help.

Regards,
Dutch
Gale FORd
Posts: 663
Joined: Mon Dec 05, 2005 11:22 pm
Location: Houston
Contact:

Post by Gale FORd »

If you are using ADS then you have to use their functions for smart filtering or use a .ch file to remap the commands. If you are just sharing the indexes then you can still continue to use the cm functions.
User avatar
dutch
Posts: 1395
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand

Post by dutch »

Thanks Gale

Have you got example of .CH file to remap the cm..() function?

Regards,
Dutch
Gale FORd
Posts: 663
Joined: Mon Dec 05, 2005 11:22 pm
Location: Houston
Contact:

Post by Gale FORd »

Sorry, I sure don't.
User avatar
dutch
Posts: 1395
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand

Post by dutch »

Dear Gale,
Gale FORd wrote:Sorry, I sure don't.
I got the function to use instead of cm..()

Code: Select all

*-----------------------------------------*
* Use these function instead of CLIPMORE  *
*-----------------------------------------*
Function cmSetFilter( xVal )
return DbSetFilter( {|| &(xVal) }, xVal )

Function cmClrFilter()
return DbClearFilter()

Function cmReFilter( xVal )
local cFilter := (Alias())->(DbFilter())
if !empty( cFilter )
	cFilter += '.and.'+xVal
	DbClearFilter()
end
return DbSetFilter( {|| &(cFilter) }, cFilter )
Thanks&Regards,
Dutch
Post Reply