Page 1 of 1
Have any function to use instead of cm...() for ADS?
Posted: Mon Mar 24, 2008 10:48 am
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
Posted: Mon Mar 24, 2008 2:02 pm
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.
Posted: Tue Mar 25, 2008 9:27 am
by dutch
Thanks Gale
Have you got example of .CH file to remap the cm..() function?
Regards,
Dutch
Posted: Tue Mar 25, 2008 1:30 pm
by Gale FORd
Sorry, I sure don't.
Posted: Wed Mar 26, 2008 4:37 pm
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