Wilcards in filters... |
Post Reply |
Author | ||
ddlittle
Senior Member Joined: 19 February 2004 Location: United States Status: Offline Points: 132 |
Post Options
Thanks(0)
Posted: 11 March 2009 at 12:56pm |
|
Has anybody implemented a filter with wildcard capabilities? If i had a name list and wanted to find every name that starts with an 'S' and ends in 'I', i would type S*I should find everybody. Any ideas?
- David
|
||
mdoubson
Senior Member Joined: 17 November 2008 Status: Offline Points: 1705 |
Post Options
Thanks(0)
|
|
Using current implementation of function CXTPReportRecordItem* CXTPReportRecords::FindRecordItem(int nStartRecord, int nEndRecord,
int nStartColumn, int nEndColumn, int nRecord, int nItem, LPCTSTR pcszText, int nFlags)
you can sequentially find all items with caption stating with your BeginningPattern (e.g. "S") using nFlags = 0 or nFlags = xtpReportTextSearchBackward for backward search direction.
Mark a while-found-loop by initial search postion (nStartRecord, nEndRecord, nStartColumn, nEndColumn...) and anaylyze result by your EndingPattern (e.g "I")
// nStartRecord - Starting record index.
// nEndRecord - End record index.
// nStartColumn - Starting column index.
// nEndColumn - End column index.
// nRecord - Record index to start search from.
// nItem - Record item index to start search from.
|
||
mdoubson
Senior Member Joined: 17 November 2008 Status: Offline Points: 1705 |
Post Options
Thanks(0)
|
|
|
||
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |