<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Codejock Developer Community : Focus changing event causing a crash</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Report Control : Focus changing event causing a crash]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Thu, 14 May 2026 15:30:05 +0000</pubDate>
  <lastBuildDate>Fri, 16 Mar 2012 15:13:08 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>forum.codejock.com/RSS_post_feed.asp?TID=19581</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Codejock Developer Community]]></title>
   <url>http://forum.codejock.com/forum_images/codejock-logo.gif</url>
   <link>http://forum.codejock.com/</link>
  </image>
  <item>
   <title><![CDATA[Focus changing event causing a crash : Private Sub vsg_FocusChanging(ByVal...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=19581&amp;PID=67817&amp;title=focus-changing-event-causing-a-crash#67817</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6170">mhe240</a><br /><strong>Subject:</strong> 19581<br /><strong>Posted:</strong> 16 March 2012 at 3:13pm<br /><br /><font face="Calibri, sans-serif"><span style="font-size: 15px; line-height: 20px;"><div><div>Private Sub vsg_FocusChanging(ByVal NewRow As XtremeReportControl.IReportRow, ByVal NewColumn As XtremeReportControl.IReportColumn, ByVal NewItem As XtremeReportControl.IReportRecordItem, Cancel As Boolean)</div></div><div><br></div><div>Dim Row As XtremeReportControl.IReportRow</div><div>Static InHere As Boolean</div><div>If InHere Or NewRow Is Nothing Or NewColumn Is Nothing Or NewItem Is Nothing Then Exit Sub</div><div>InHere = True</div><div>If NewRow.Index &lt; vsg.FocusedRow.Index And KeyUpPressed Then</div><div>&nbsp; &nbsp; KeyUpPressed = False</div><div>&nbsp; &nbsp; Set Row = MoveUp(NewRow, NewColumn, NewItem)</div><div>Else</div><div>&nbsp; &nbsp; Set Row = MoveDown(NewRow, NewColumn, NewItem)</div><div>End If</div><div>If Row Is Nothing Then</div><div>ElseIf Row.Index = NewRow.Index Then</div><div>&nbsp; &nbsp; If NewColumn.Index = COL_OTHER Or Not m_hasOther Then</div><div>&nbsp; &nbsp; &nbsp; &nbsp; vsg.FocusedColumn = vsg.Columns(COL_ANSWER)</div><div>&nbsp; &nbsp; End If</div><div>Else</div><div>&nbsp; &nbsp; Set vsg.FocusedColumn = vsg.Columns(COL_ANSWER)</div><div>&nbsp; &nbsp; Set vsg.FocusedRow = Row</div><div>&nbsp; &nbsp; Cancel = True</div><div>End If</div><div>Set Row = Nothing</div><div>InHere = False</div><div>End Sub</div><div><br></div><div>when End Sub is invoked, this crashes, move up and move down tries to find the next valid line that can be focused on. &nbsp; &nbsp;I am working on a different way to do this. &nbsp;It seem some sort of issue occurs and cause the IDE to crash.</div></span></font>]]>
   </description>
   <pubDate>Fri, 16 Mar 2012 15:13:08 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=19581&amp;PID=67817&amp;title=focus-changing-event-causing-a-crash#67817</guid>
  </item> 
 </channel>
</rss>