Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - Options to linear CXTPReportRecords Search?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Options to linear CXTPReportRecords Search?

 Post Reply Post Reply
Author
Message
Algae View Drop Down
Senior Member
Senior Member
Avatar

Joined: 08 January 2007
Location: United States
Status: Offline
Points: 217
Post Options Post Options   Thanks (0) Thanks(0)   Quote Algae Quote  Post ReplyReply Direct Link To This Post Topic: Options to linear CXTPReportRecords Search?
    Posted: 23 December 2010 at 1:37pm
In the Report code I noticed there are several instances where the report record arrays use a linear search for finding a particular record. Is there any other search/find method available?

Linear search is painfully slow and it seems if you have a "sorted" list of records you should be able to use something else like bsearch.

Is another search/find method included in the source somewhere or does anyone have an alternate search method they can share?


Back to Top
Algae View Drop Down
Senior Member
Senior Member
Avatar

Joined: 08 January 2007
Location: United States
Status: Offline
Points: 217
Post Options Post Options   Thanks (0) Thanks(0)   Quote Algae Quote  Post ReplyReply Direct Link To This Post Posted: 24 December 2010 at 3:14pm
I added one already but wondered if there was one already included somewhere in the toolkit that was more generic than mine.
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.156 seconds.