Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Report Control
  New Posts New Posts RSS Feed - BUG: UpdateRecord from New Items Row Sample causes
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

BUG: UpdateRecord from New Items Row Sample causes

 Post Reply Post Reply
Author
Message
Stilki View Drop Down
Groupie
Groupie


Joined: 27 May 2005
Status: Offline
Points: 70
Post Options Post Options   Thanks (0) Thanks(0)   Quote Stilki Quote  Post ReplyReply Direct Link To This Post Topic: BUG: UpdateRecord from New Items Row Sample causes
    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
Back to Top
mdoubson View Drop Down
Senior Member
Senior Member
Avatar

Joined: 17 November 2008
Status: Offline
Points: 1705
Post Options Post Options   Thanks (0) Thanks(0)   Quote mdoubson Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
Stilki View Drop Down
Groupie
Groupie


Joined: 27 May 2005
Status: Offline
Points: 70
Post Options Post Options   Thanks (0) Thanks(0)   Quote Stilki Quote  Post ReplyReply Direct Link To This Post 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

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: 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....
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.250 seconds.