Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - CXTPReportRecord IsFiltered not being cal
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CXTPReportRecord IsFiltered not being cal

 Post Reply Post Reply
Author
Message
Italo View Drop Down
Groupie
Groupie


Joined: 10 December 2003
Location: United States
Status: Offline
Points: 83
Post Options Post Options   Thanks (0) Thanks(0)   Quote Italo Quote  Post ReplyReply Direct Link To This Post Topic: CXTPReportRecord IsFiltered not being cal
    Posted: 06 August 2004 at 2:06pm

IsFiltered is only called if the report control has a filter string. This causes a problem when you’re trying to write a program that uses custom filters. I would like for IsFiltered to be called regardless if the report control has a filter string. I know that I could just set the filter string to a bogus value, but I don’t want the expense of checking all rows.

 

 

The existing code in CXTPReportControl::ApplyFilter is:

 

      // not filtered if filter text is empty

      if (!pRecord || strFilterText.IsEmpty())

             return FALSE;

 

      if (pRecord->IsFiltered())

             return TRUE;

 

 

Can this be changed to?

 

      if (!pRecord ) return FALSE;

 

      if (pRecord->IsFiltered())

             return TRUE;

 

      if( strFilterText.IsEmpty() ) return FALSE;

 

Thanks, Italo

Back to Top
Oleg View Drop Down
Senior Member
Senior Member


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 10 August 2004 at 2:45am
Fixed. Thank you.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.047 seconds.