Print Page | Close Window

BUG: UpdateRecord from New Items Row Sample causes

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


Topic: BUG: UpdateRecord from New Items Row Sample causes
Posted By: Stilki
Subject: BUG: UpdateRecord from New Items Row Sample causes
Date Posted: 26 April 2009 at 11:44am
There is a bug in the ReportControl when calling the UpdateRecord method from the FocusChanging event of the Report control.

To replicate the problem:
Open the Report Sample of the Report Control.
Open the form frmNewItemRow and set the property wndReportControl.FocusSubItems = True in the form load event .
Run the program.
Under the menu 'Additional Samples' choose the 'New Item Row' sample.
Add a few rows to the sample.
With the keyboard arrow keys, move down a row or two.
Now move the cell focus left or right using the arrow keys of your keyboard.

A GPF is generated

If I comment out the following line:
UpdateRow wndReportControl.FocusedRow
from the wndReportControl_FocusChanging event, the GPF does not occur.


I am using CJ v13
OS: WinXP SP2 x64



Replies:
Posted By: mdoubson
Date Posted: 28 April 2009 at 12:25am
I think this is wrong VB function - why you need to call UpdateRow if you switch item inside same row? There is nothing to update.

-------------
Mark Doubson, Ph.D.


Posted By: Stilki
Date Posted: 28 April 2009 at 7:17pm
The function is not wrong. It is a simple VB function that calls the following line:

wndReportControl.UpdateRecord wndReportControl.FocusedRow.Record, True

I should have written that, if you comment out the line above you do not get the GPF when using the left/right arrow keys. If you do not comment it out, you get the GPF.

Remember, this is from the Report Sample. The only change I made from the sample was to set the following property:
wndReportControl.FocusSubItems = True



Posted By: Aaron
Date Posted: 03 July 2010 at 7:24am
Hi,
 
Hope this will looked at this time  
 
 


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