<?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 : [SOLVED] How does FindRecordItem work?</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Report Control : [SOLVED] How does FindRecordItem work?]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 02 May 2026 00:06:11 +0000</pubDate>
  <lastBuildDate>Sun, 30 Mar 2025 07:41:01 +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=12897</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[[SOLVED] How does FindRecordItem work? : Just a little note that caused...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12897&amp;PID=79170&amp;title=solved-how-does-findrecorditem-work#79170</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=9527">Milano</a><br /><strong>Subject:</strong> 12897<br /><strong>Posted:</strong> 30 March 2025 at 7:41am<br /><br /><div>Just a little note that caused me to lose some time.<br><br>If you want to search <b>from the beginning</b> of rows or columns, you set zeroes for StartIndex, StartColumn and Item parameters.</div><div><br></div><div><font face="Courier New, Courier, mono">Set repRecItem = wndReportControl.Records.FindRecordItem(0, iRows, 0, iCols, 1, 0, sArg, 0)</font></div><div><br></div><div>Setting Flags to zero means finding anything that matches the criteria.</div><div><br></div><div>I think you should add an enumeration in XTPGridTextSearchParms for this too, as it's not clear what to use when none of the suggested options apply:</div><div><br></div><div><strong>xtpGridTextSearchExactPhrase</strong></div><div><strong>xtpGridTextSearchMatchCase</strong></div><div><strong>xtpGridTextSearchBackward</strong></div><div><strong>xtpGridTextSearchExactStart</strong></div><div><br></div><div>perhaps you could add</div><div><br></div><div><strong>xtpGridTextSearchAny = 0</strong><br></div><div><br></div><div>Code example of finding and setting the FocusedRow to appropriate possition:</div><div><br></div><div><font face="Courier New, Courier, mono">Dim searchToken As String, oFnd As GridRecordItem <br></font></div><div><font face="Courier New, Courier, mono"><br></font></div><div><font face="Courier New, Courier, mono">searchToken = "Find this"</font></div><div><font face="Courier New, Courier, mono"><br></font></div><div><font face="Courier New, Courier, mono">With GridControl</font></div><blockquote><div><font face="Courier New, Courier, mono">Set oFnd = .Rows.FindRecordItemByRows(0, .Rows.Count, 0, .Columns.Count , 0, 0, searchToken, 0)</font></div><div><font face="Courier New, Courier, mono"><br></font></div><div><font face="Courier New, Courier, mono">If Not oFnd Is Nothing Then</font></div><blockquote><div><font face="Courier New, Courier, mono">Set .FocusedRow = .Rows.FindRow(oFnd.Record)</font></div><div><font face="Courier New, Courier, mono">.FocusedRow.EnsureVisible</font></div><div><font face="Courier New, Courier, mono"><br></font></div></blockquote><div><font face="Courier New, Courier, mono">End If</font></div></blockquote><div><font face="Courier New, Courier, mono">End With</font></div>]]>
   </description>
   <pubDate>Sun, 30 Mar 2025 07:41:01 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12897&amp;PID=79170&amp;title=solved-how-does-findrecorditem-work#79170</guid>
  </item> 
  <item>
   <title><![CDATA[[SOLVED] How does FindRecordItem work? : Done.  ]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12897&amp;PID=50381&amp;title=solved-how-does-findrecorditem-work#50381</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1570">Jebo</a><br /><strong>Subject:</strong> 12897<br /><strong>Posted:</strong> 27 June 2009 at 4:26am<br /><br />Done.]]>
   </description>
   <pubDate>Sat, 27 Jun 2009 04:26:38 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12897&amp;PID=50381&amp;title=solved-how-does-findrecorditem-work#50381</guid>
  </item> 
  <item>
   <title><![CDATA[[SOLVED] How does FindRecordItem work? :   Jebo wrote:Oh, that sounds...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12897&amp;PID=50380&amp;title=solved-how-does-findrecorditem-work#50380</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 12897<br /><strong>Posted:</strong> 27 June 2009 at 3:41am<br /><br /><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by Jebo" alt="Originally posted by Jebo" style="vertical-align: text-bottom;" /> <strong>Jebo wrote:</strong><br /><br />Oh, that sounds great!&nbsp;<img src="http://forum.codejock.com/smileys/smiley32.gif" border="0"></td></tr></table> <DIV>&nbsp;</DIV><DIV>Hi @Jebo,</DIV><DIV>&nbsp;</DIV><DIV>Would be best you would remove "the sticky part"&nbsp;of your post and add SOLVED to description. Now it looks like it's still a BUG and we don't want that, right?</DIV><DIV>&nbsp;</DIV><DIV>Thanks</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Sat, 27 Jun 2009 03:41:25 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12897&amp;PID=50380&amp;title=solved-how-does-findrecorditem-work#50380</guid>
  </item> 
  <item>
   <title><![CDATA[[SOLVED] How does FindRecordItem work? : there is also another function...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12897&amp;PID=50272&amp;title=solved-how-does-findrecorditem-work#50272</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4721">mdoubson</a><br /><strong>Subject:</strong> 12897<br /><strong>Posted:</strong> 24 June 2009 at 4:07pm<br /><br />there is also another function for search: <DIV>IReportRecordItem* FindRecordItemByRows(long StartIndex, long EndIndex, long StartColumn, long EndColumn, long Record, long Item, BSTR Text, XTPReportTextSearchParms Flags);<BR>it is good for already&nbsp;sorted case</DIV>]]>
   </description>
   <pubDate>Wed, 24 Jun 2009 16:07:19 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12897&amp;PID=50272&amp;title=solved-how-does-findrecorditem-work#50272</guid>
  </item> 
  <item>
   <title><![CDATA[[SOLVED] How does FindRecordItem work? : Oh, that sounds great!  ]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12897&amp;PID=50271&amp;title=solved-how-does-findrecorditem-work#50271</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1570">Jebo</a><br /><strong>Subject:</strong> 12897<br /><strong>Posted:</strong> 24 June 2009 at 3:59pm<br /><br />Oh, that sounds great!&nbsp;<img src="http://forum.codejock.com/smileys/smiley32.gif" border="0" align="absmiddle">]]>
   </description>
   <pubDate>Wed, 24 Jun 2009 15:59:22 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12897&amp;PID=50271&amp;title=solved-how-does-findrecorditem-work#50271</guid>
  </item> 
  <item>
   <title><![CDATA[[SOLVED] How does FindRecordItem work? : Hi,  This issues has been solved...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12897&amp;PID=50270&amp;title=solved-how-does-findrecorditem-work#50270</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 12897<br /><strong>Posted:</strong> 24 June 2009 at 2:17pm<br /><br />Hi,<DIV>&nbsp;</DIV><DIV><strong>This issues has been solved in V13.1</strong> <img src="https://forum.codejock.com/smileys/smiley4.gif" border="0">&nbsp;Including extra member <strong>xtpReportTextSearchExactStart</strong></DIV><DIV><strong></strong>&nbsp;</DIV><DIV>Thanks</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Wed, 24 Jun 2009 14:17:26 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12897&amp;PID=50270&amp;title=solved-how-does-findrecorditem-work#50270</guid>
  </item> 
  <item>
   <title><![CDATA[[SOLVED] How does FindRecordItem work? : We have now new flag for FindRecordItem...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12897&amp;PID=48681&amp;title=solved-how-does-findrecorditem-work#48681</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4721">mdoubson</a><br /><strong>Subject:</strong> 12897<br /><strong>Posted:</strong> 05 May 2009 at 5:41pm<br /><br />We have now new flag for <FONT size=2>FindRecordItem function (</FONT><FONT size=2>xtpReportTextSearchExactStart) which means only string starting with pattern return (not pattern inside case) and new function <FONT size=2>FindRecordItemByRows which use same flag set but operate with Rows instead of Records - same way you can sort your report and call this function after e.g. providing top 10 rows as search positions</FONT></FONT>]]>
   </description>
   <pubDate>Tue, 05 May 2009 17:41:22 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12897&amp;PID=48681&amp;title=solved-how-does-findrecorditem-work#48681</guid>
  </item> 
  <item>
   <title><![CDATA[[SOLVED] How does FindRecordItem work? : You right - it was wrong internal...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12897&amp;PID=45717&amp;title=solved-how-does-findrecorditem-work#45717</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4721">mdoubson</a><br /><strong>Subject:</strong> 12897<br /><strong>Posted:</strong> 21 February 2009 at 11:57am<br /><br />You right - it was wrong internal function (Left instead of Mid!) call -&nbsp;"Search case-non-sensetive item Which STARTED with given pattern".<DIV>It also make sense - but with special flag (may be in future?). For now I fix it to cover general case - "Search case-non-sensetive item&nbsp;Which HAS&nbsp;given pattern as substring"</DIV>]]>
   </description>
   <pubDate>Sat, 21 Feb 2009 11:57:02 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12897&amp;PID=45717&amp;title=solved-how-does-findrecorditem-work#45717</guid>
  </item> 
  <item>
   <title><![CDATA[[SOLVED] How does FindRecordItem work? : Hi Mark  With new OCX this is...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12897&amp;PID=45712&amp;title=solved-how-does-findrecorditem-work#45712</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 12897<br /><strong>Posted:</strong> 21 February 2009 at 10:26am<br /><br />Hi Mark<DIV>&nbsp;</DIV><DIV>With new OCX this is solved but now it will give error on <strong>xtpReportTextSearchMatchCase</strong></DIV><DIV><strong></strong>&nbsp;</DIV><DIV>Thanks</DIV><DIV><strong></strong>&nbsp;</DIV><DIV><strong></strong>&nbsp;</DIV>]]>
   </description>
   <pubDate>Sat, 21 Feb 2009 10:26:27 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12897&amp;PID=45712&amp;title=solved-how-does-findrecorditem-work#45712</guid>
  </item> 
  <item>
   <title><![CDATA[[SOLVED] How does FindRecordItem work? : YOU RIGHT - code SKIP pure xtpReportTextSearchExactPhrase...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12897&amp;PID=45432&amp;title=solved-how-does-findrecorditem-work#45432</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4721">mdoubson</a><br /><strong>Subject:</strong> 12897<br /><strong>Posted:</strong> 13 February 2009 at 12:07pm<br /><br />YOU RIGHT - code SKIP pure xtpReportTextSearchExactPhrase case! <DIV>While case xtpReportTextSearchExactPhrase AND xtpReportTextSearchMatchCase&nbsp;properly covered.<BR>I will fix it - you can use also code 0 - it works properly. </DIV><DIV>P.S. Case fixed and next beta-release will have proper code for ToolkitPro and ActiveXs</DIV>]]>
   </description>
   <pubDate>Fri, 13 Feb 2009 12:07:13 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12897&amp;PID=45432&amp;title=solved-how-does-findrecorditem-work#45432</guid>
  </item> 
 </channel>
</rss>