Print Page | Close Window

Getting Undefined Error

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=12665
Printed Date: 14 November 2024 at 5:51pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Getting Undefined Error
Posted By: SSmith
Subject: Getting Undefined Error
Date Posted: 12 November 2008 at 10:01am
I am picking up a VB6 project started in 2005 from a programmer who is no longer here. We have XT Suite 9.7 installed and licensed. When I try to run the code I get an undefined error in two spots:

Private Sub ReportControl1_RowDblClick(ByVal row As XtremeReportControl.IReportRow, ByVal Item As XtremeReportControl.IReportRecordItem)
    EditConnection (row.Index + 1)
    ReportControl1.SetFocus
End Sub

&

    With control.CommandBar.Controls
        Set WindowHorizOption = .Add(xtpControlButton, ID_WINDOW_TILE_HORIZANTALLY, "Tile &Horizontally", -1, False)
        WindowHorizOption.DescriptionText = "Tile session windows horizontally"

If I comment out these lines, I get get the program to run but I am sure I missing some functionality. Any idea how I can redefine these properly?



Replies:
Posted By: Aaron
Date Posted: 21 November 2008 at 2:10am
Hi,
 
  1. I guess EditConnection is somekind of function and I tried with V12.1 and it didn't raise an error. You could show me the code inside this function, maybe it has something to do with that. 
  2. If WindowHorizOption is declared as CommandBarButton I don't see what would be wrong.

Maybe you better update version. You can download free trial version to test your issues.



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


Posted By: SSmith
Date Posted: 21 November 2008 at 9:40am
Actually, I found the solution to both problems.
1) Although I installed the CodeJocks and registered, it was not automatically turned on in the application. I had to put the checkmark in the components list.
2) the second issue I was having with the Horizontal component was that it was originally setup us as "Horizantal" and someone corrected the spelling of the dimmed variable to "Horizontal". A couple of quick spelling changes fixed that.

Thanks for posting.




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