BUG: UpdateRecord from New Items Row Sample causes |
Post Reply |
Author | |
Stilki
Groupie Joined: 27 May 2005 Status: Offline Points: 70 |
Post Options
Thanks(0)
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 |
|
mdoubson
Senior Member Joined: 17 November 2008 Status: Offline Points: 1705 |
Post Options
Thanks(0)
|
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.
|
|
Stilki
Groupie Joined: 27 May 2005 Status: Offline Points: 70 |
Post Options
Thanks(0)
|
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 |
|
Aaron
Senior Member Joined: 29 January 2008 Status: Offline Points: 2192 |
Post Options
Thanks(0)
|
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.... |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |