Print Page | Close Window

GetSelectedRows()->GetCount() missing ASSERT?

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Report Control
Forum Description: Topics Related to Codejock Report Control
URL: http://forum.codejock.com/forum_posts.asp?TID=6385
Printed Date: 22 November 2024 at 3:17am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: GetSelectedRows()->GetCount() missing ASSERT?
Posted By: znakeeye
Subject: GetSelectedRows()->GetCount() missing ASSERT?
Date 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!



Replies:
Posted By: sserge
Date Posted: 12 February 2007 at 3:11pm
Hi,

Yes, that makes sense, thanks!

--
WBR,
Serge



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net