Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Report Control
  New Posts New Posts RSS Feed - Error grouping the "Task list" sample
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Error grouping the "Task list" sample

 Post Reply Post Reply
Author
Message
MNovaro View Drop Down
Groupie
Groupie
Avatar

Joined: 20 June 2006
Status: Offline
Points: 71
Post Options Post Options   Thanks (0) Thanks(0)   Quote MNovaro Quote  Post ReplyReply Direct Link To This Post Topic: Error grouping the "Task list" sample
    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.



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

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.172 seconds.