Print Page | Close Window

SelectBlock 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=10577
Printed Date: 22 November 2024 at 11:05pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: SelectBlock ASSERT
Posted By: znakeeye
Subject: SelectBlock ASSERT
Date Posted: 10 May 2008 at 10:55am
pSelectedRows->Clear();
int count = GetRecords()->GetCount();
if (count)
    pSelectedRows->SelectBlock(0, count - 1);
 
That causes an assert at XTPReportRows.cpp(734).
 
nBlockBegin = 0
pRows->GetCount() = 144
nEnd = 199
 
I believe this is due to grouped rows. What am I doing wrong?



Replies:
Posted By: Oleg
Date Posted: 11 May 2008 at 1:43am
Just replace
int count = GetRecords()->GetCount();
to
int count = GetRows()->GetCount();


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



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