Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Report Control
  New Posts New Posts RSS Feed - Problem with RecordItemControls Removal
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Problem with RecordItemControls Removal

 Post Reply Post Reply
Author
Message
coltu View Drop Down
Newbie
Newbie


Joined: 13 July 2010
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote coltu Quote  Post ReplyReply Direct Link To This Post Topic: Problem with RecordItemControls Removal
    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?





Back to Top
Aaron View Drop Down
Senior Member
Senior Member
Avatar

Joined: 29 January 2008
Status: Offline
Points: 2192
Post Options Post Options   Thanks (0) Thanks(0)   Quote Aaron Quote  Post ReplyReply Direct Link To This Post 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....
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.170 seconds.