Print Page | Close Window

Error grouping the "Task list" sample

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=4471
Printed Date: 14 September 2025 at 7:55pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Error grouping the "Task list" sample
Posted By: MNovaro
Subject: Error grouping the "Task list" sample
Date Posted: 23 June 2006 at 4:33am

Hello,

I'm playing with the samples of the evaluation version to understand how to use the code.

I tried to show the "Group Box" in the "Task list" sample, and tried to group by a column.
Grouping by every column generates the error:

"Object Variable or with block variable not set"

in the procedure wndReportControl_BeforeDrawRow. In particular, the problem is due to the fact that Row.Record is nothing, so the access to

Row.Record(COLUMN_STATUS).Value

generates the error.
Where is the problem?

Thanks for any help.






Replies:
Posted By: sserge
Date Posted: 25 June 2006 at 4:51pm
Hi,

In the _BefireDrawRow handler add following validation:

Private Sub wndReportControl_BeforeDrawRow(...)
    If Row.Record Is Nothing Then Exit Sub
    .......


--
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