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

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

Postby dutch » Mon Mar 24, 2008 10:48 am

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
User avatar
dutch
 
Posts: 1542
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand

Postby Gale FORd » Mon Mar 24, 2008 2:02 pm

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.
Gale FORd
 
Posts: 663
Joined: Mon Dec 05, 2005 11:22 pm
Location: Houston

Postby dutch » Tue Mar 25, 2008 9:27 am

Thanks Gale

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

Regards,
Dutch
User avatar
dutch
 
Posts: 1542
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand

Postby Gale FORd » Tue Mar 25, 2008 1:30 pm

Sorry, I sure don't.
Gale FORd
 
Posts: 663
Joined: Mon Dec 05, 2005 11:22 pm
Location: Houston

Postby dutch » Wed Mar 26, 2008 4:37 pm

Dear Gale,

Gale FORd wrote:Sorry, I sure don't.


I got the function to use instead of cm..()

Code: Select all  Expand view
*-----------------------------------------*
* 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
User avatar
dutch
 
Posts: 1542
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 80 guests