Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - GetSelectedRows()->GetCount() missing ASSERT?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

GetSelectedRows()->GetCount() missing ASSERT?

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

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post Topic: GetSelectedRows()->GetCount() missing ASSERT?
    Posted: 12 February 2007 at 2:58pm
I wanted to select all items in my report control and did this:
 
int count = GetRecords()->GetCount(); // count == 10
GetSelectedRows()->SelectBlock(0, count); // 0-11 selected!!
 
Would have been nice if there had been an ASSERT(count < GetCount()); inside the SelectBlock function . Took me some time to find out why my selections got corrupt sometimes.
 
Maybe you should add this minor check in future releases?
Thanks!
Back to Top
sserge View Drop Down
Moderator Group
Moderator Group


Joined: 01 December 2004
Status: Offline
Points: 1297
Post Options Post Options   Thanks (0) Thanks(0)   Quote sserge Quote  Post ReplyReply Direct Link To This Post Posted: 12 February 2007 at 3:11pm
Hi,

Yes, that makes sense, thanks!

--
WBR,
Serge
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.133 seconds.