Print Page | Close Window

Problem with RecordItemControls Removal

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=16948
Printed Date: 22 November 2024 at 5:07am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Problem with RecordItemControls Removal
Posted By: coltu
Subject: Problem with RecordItemControls Removal
Date Posted: 13 July 2010 at 11:04am
Hi,

after adding Buttons to ReportItems, calling populate, and removing the controls afterwards, i get an exception when i move the mouse over the ReportControl.

adding the following procedure to the form "frmItemControls" in "Report Control Sample" and calling it reproduces the behaviour every time.

Private Sub RemoveAll_Click()
    Dim i As Long
    Dim rr As ReportRecord
    Dim ri As ReportRecordItem
    For Each rr In wndReportControl.Records
        For i = 0 To rr.ItemCount - 1
            Set ri = rr.Item(i)
            ri.ItemControls.RemoveAll
        Next i
    Next
    'wndReportControl.Populate
    wndReportControl.Redraw
End Sub

i'm not sure if this is the right way to remove itemcontrols. if not, how should i do it the right way?








Replies:
Posted By: Aaron
Date Posted: 14 July 2010 at 6:31am
Hi,
 
I can confirm this is a bug. At first I thought it would be VB problem but I see it also happen with compiled exe. Not all time but at some point it happens.
I will add this to my list
 
Thanks 
 


-------------
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2
Language: Visual Basic 6.0

Zero replies is not an option....



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