<?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: Get text from xtpControlEdit in CommandBar</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : SOLVED: Get text from xtpControlEdit in CommandBar]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 14 Jun 2026 13:48:26 +0000</pubDate>
  <lastBuildDate>Mon, 12 Apr 2010 16:59: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=16557</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: Get text from xtpControlEdit in CommandBar : Hi SuperMario, My bad. I guess...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=16557&amp;PID=58045&amp;title=solved-get-text-from-xtpcontroledit-in-commandbar#58045</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6028">mstuart</a><br /><strong>Subject:</strong> 16557<br /><strong>Posted:</strong> 12 April 2010 at 4:59pm<br /><br />Hi SuperMario,<br />My bad. I guess I meant to type Control.Text.<br />I changed it and now it is working.]]>
   </description>
   <pubDate>Mon, 12 Apr 2010 16:59:08 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=16557&amp;PID=58045&amp;title=solved-get-text-from-xtpcontroledit-in-commandbar#58045</guid>
  </item> 
  <item>
   <title><![CDATA[SOLVED: Get text from xtpControlEdit in CommandBar : They said Control.Text not Control.Edit.Or...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=16557&amp;PID=58044&amp;title=solved-get-text-from-xtpcontroledit-in-commandbar#58044</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=369">SuperMario</a><br /><strong>Subject:</strong> 16557<br /><strong>Posted:</strong> 12 April 2010 at 4:53pm<br /><br />They said Control.<b>Text </b>not Control.Edit.<br><br>Or if you really want, just cast it??<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If Code = XTPControlNotify.XTP_EN_CHANGE Then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Dim x As CommandBarEdit<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set x = Control<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Debug.Print x.Text<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End If<br>]]>
   </description>
   <pubDate>Mon, 12 Apr 2010 16:53:26 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=16557&amp;PID=58044&amp;title=solved-get-text-from-xtpcontroledit-in-commandbar#58044</guid>
  </item> 
  <item>
   <title><![CDATA[SOLVED: Get text from xtpControlEdit in CommandBar : Hi, I typed in the Control.Edit...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=16557&amp;PID=58037&amp;title=solved-get-text-from-xtpcontroledit-in-commandbar#58037</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6028">mstuart</a><br /><strong>Subject:</strong> 16557<br /><strong>Posted:</strong> 12 April 2010 at 11:35am<br /><br />Hi,<br />I typed in the Control.Edit code and it didn't error at that time. But when I run the program and type into the commandbar edit control, it returns the error: <br /> Run-time error '438':<br /> Object doesn't support this property or method<br /><br />I'm using Codejock Suite v13.2.1<br /><br />I'll build a demo program that demonstrates this commandbar edit control and report control, and return with my findings.<br /><br />Here's my handler code:<br />Private Sub ACommandBars_ControlNotify(ByVal Control As XtremeCommandBars.ICommandBarControl, ByVal Code As Long, ByVal NotifyData As Variant, Handled As Variant)<br />&nbsp;&nbsp;&nbsp;&nbsp;Select Case Control.Id<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Case 4  'this is the edit control's id<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;If Code = XTPControlNotify.XTP_EN_CHANGE Then<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  Me.AReportControl.FilterText = Control.Edit<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  Me.AReportControl.Populate<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;End If<br />&nbsp;&nbsp;&nbsp;&nbsp;End Select<br />End Sub<br /><br /><font color=blue>Findings:</font><br />VB6 continues to report the above error with the code "Control.Edit".<br /><br />Anybody have a solution to this issue: as the user types each character into a CommandBars ControlEdit control, it filter the report control.<br />]]>
   </description>
   <pubDate>Mon, 12 Apr 2010 11:35:40 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=16557&amp;PID=58037&amp;title=solved-get-text-from-xtpcontroledit-in-commandbar#58037</guid>
  </item> 
  <item>
   <title><![CDATA[SOLVED: Get text from xtpControlEdit in CommandBar :   mstuart wrote:Hi all, I&amp;#039;ve...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=16557&amp;PID=58025&amp;title=solved-get-text-from-xtpcontroledit-in-commandbar#58025</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 16557<br /><strong>Posted:</strong> 11 April 2010 at 1:58am<br /><br /><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by mstuart" alt="Originally posted by mstuart" style="vertical-align: text-bottom;" /> <strong>mstuart wrote:</strong><br /><br />Hi all, <BR>I've placed into my VB6 application, the event handler you mentioned. <BR>But there is no <FONT color=blue>Control.Text</FONT> for the Control object in the CommandBars_ControlNotify event. <BR><BR>I'm unable to get this working. <BR>Can you help me on this please? <BR></td></tr></table> <DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>Hi,</DIV><DIV>&nbsp;</DIV><DIV>I know it doesn't show but it's really there <img src="https://forum.codejock.com/smileys/smiley2.gif" border="0">&nbsp;Just use the code I mentioned and it will work (at least with VB) </DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Sun, 11 Apr 2010 01:58:01 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=16557&amp;PID=58025&amp;title=solved-get-text-from-xtpcontroledit-in-commandbar#58025</guid>
  </item> 
  <item>
   <title><![CDATA[SOLVED: Get text from xtpControlEdit in CommandBar : I use SuitePro v13.3.1  Control.Text...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=16557&amp;PID=58023&amp;title=solved-get-text-from-xtpcontroledit-in-commandbar#58023</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4669">gibra</a><br /><strong>Subject:</strong> 16557<br /><strong>Posted:</strong> 10 April 2010 at 10:22am<br /><br /><DIV>I use SuitePro v13.3.1</DIV><DIV>&nbsp;</DIV><DIV>Control.Text property, really, doesn't appear using Intellisense, however it is there and work.</DIV><DIV>May be a BUG?</DIV><DIV>&nbsp;</DIV><DIV>Dim ID_TOOLBAR_EDIT_SEARCH = 1002</DIV><DIV>&nbsp;</DIV><DIV>Private Sub CommandBars_ControlNotify(ByVal Control As XtremeCommandBars.ICommandBarControl, ByVal Code As Long, ByVal NotifyData As Variant, Handled As Variant)<BR>&nbsp;&nbsp;&nbsp; If Control.Id = ID_TOOLBAR_EDIT_SEARCH Then<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Debug.Print ctrlEditSearch.Text<BR>&nbsp;&nbsp;&nbsp; End If<BR>End Sub</DIV><DIV>&nbsp;</DIV><DIV><img src="http://forum.codejock.com/smileys/smiley2.gif" border="0"></DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Sat, 10 Apr 2010 10:22:20 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=16557&amp;PID=58023&amp;title=solved-get-text-from-xtpcontroledit-in-commandbar#58023</guid>
  </item> 
  <item>
   <title><![CDATA[SOLVED: Get text from xtpControlEdit in CommandBar : Hi all, I&amp;#039;ve placed into...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=16557&amp;PID=57975&amp;title=solved-get-text-from-xtpcontroledit-in-commandbar#57975</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6028">mstuart</a><br /><strong>Subject:</strong> 16557<br /><strong>Posted:</strong> 07 April 2010 at 4:06pm<br /><br />Hi all,<br />I've placed into my VB6 application, the event handler you mentioned.<br />But there is no <font color=blue>Control.Text</font> for the Control object in the CommandBars_ControlNotify event.<br /><br />I'm unable to get this working.<br />Can you help me on this please?<br />]]>
   </description>
   <pubDate>Wed, 07 Apr 2010 16:06:37 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=16557&amp;PID=57975&amp;title=solved-get-text-from-xtpcontroledit-in-commandbar#57975</guid>
  </item> 
  <item>
   <title><![CDATA[SOLVED: Get text from xtpControlEdit in CommandBar : Hi,  You can also use:  Private...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=16557&amp;PID=57958&amp;title=solved-get-text-from-xtpcontroledit-in-commandbar#57958</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 16557<br /><strong>Posted:</strong> 07 April 2010 at 12:39pm<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>You can also use:</DIV><DIV>&nbsp;</DIV><DIV>Private Sub CommandBars_ControlNotify(ByVal Control As XtremeCommandBars.ICommandBarControl, ByVal Code As Long, ByVal NotifyData As Variant, Handled As Variant)<BR>&nbsp;&nbsp;&nbsp; Select Case Control.Id<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Case ID_TOOLBAR_SEARCH <FONT color=#0000ff>'the ID of the&nbsp;CommandbarControl </FONT><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If&nbsp;Code = XTPControlNotify.XTP_EN_CHANGE Then&nbsp;&nbsp;</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Me.wndReportControl.FilterText = Control.Text<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Me.wndReportControl.Populate<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End If<BR>&nbsp;&nbsp;&nbsp; End Select<BR>End Sub</DIV><DIV>&nbsp;</DIV><DIV>This event is fired everytime (in your case typing characters into CommandBarsEdit). The params are poorly documented so I had to findout myself. But it works and that what matters, right?</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Wed, 07 Apr 2010 12:39:10 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=16557&amp;PID=57958&amp;title=solved-get-text-from-xtpcontroledit-in-commandbar#57958</guid>
  </item> 
  <item>
   <title><![CDATA[SOLVED: Get text from xtpControlEdit in CommandBar : bump - anybody have incite on...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=16557&amp;PID=57953&amp;title=solved-get-text-from-xtpcontroledit-in-commandbar#57953</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6028">mstuart</a><br /><strong>Subject:</strong> 16557<br /><strong>Posted:</strong> 07 April 2010 at 11:25am<br /><br />bump - anybody have incite on this issue?]]>
   </description>
   <pubDate>Wed, 07 Apr 2010 11:25:43 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=16557&amp;PID=57953&amp;title=solved-get-text-from-xtpcontroledit-in-commandbar#57953</guid>
  </item> 
  <item>
   <title><![CDATA[SOLVED: Get text from xtpControlEdit in CommandBar : Hi all, I&amp;#039;m new to the forum,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=16557&amp;PID=57949&amp;title=solved-get-text-from-xtpcontroledit-in-commandbar#57949</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6028">mstuart</a><br /><strong>Subject:</strong> 16557<br /><strong>Posted:</strong> 06 April 2010 at 10:17pm<br /><br />Hi all,<br />I'm new to the forum, and have been implementing/developing with the COM Suite 13.2.1 for a couple of months now.<br /><br />My development tool for the past 18 years has been eDeveloper 9.4 by Magic Software. And recently we started using the Codejock COM Suite in our CRM product.<br /><br />To learn the Codejock products, I installed VB6 and learned it from the Codejock samples, so that I could implement the Report Control into our software.<br />I got it working, but now am seeing the power of VB6 and Codejock combined and have started proto-typing certain parts of our software in VB6.<br /><br />With that, I need all the help I can get, and have been searching on the forum quite a bit. Some thiing I have found answers for and some I have submitted to tech support.<br /><br />But haven't found an answer to the following:<br />I need to capture the text value from an xtpControlEdit control that is loaded into a Commandbar.<br />For each key down, the CommandBarKeyDown event is 1 character behind in its handler.<br /><br />Here's my VB6 code:<br /><br />Private Sub CommandBars_CommandBarKeyDown(CommandBar As XtremeCommandBars.ICommandBar, KeyCode As Long, Shift As Integer)<br />&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;If KeyCode &lt;&gt; 0 Then<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Dim ControlEdit As CommandBarEdit<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set ControlEdit = CommandBar.SelectedControl<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Debug.Print ControlEdit.Text<br />&nbsp;&nbsp;&nbsp;&nbsp;End If<br />&nbsp;&nbsp;&nbsp;&nbsp;<br />End Sub<br /><br />Private Sub Form_Load()<br />&nbsp;&nbsp;&nbsp;&nbsp;Dim bar As CommandBar<br />&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;Me.CommandBars.DeleteAll<br />&nbsp;&nbsp;&nbsp;&nbsp;CommandBars.VisualTheme = xtpThemeOffice2003<br />&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;Set bar = Me.CommandBars.Add("Toolbar", xtpBarTop)<br />&nbsp;&nbsp;&nbsp;&nbsp;bar.Controls.Add xtpControlButton, 1000, "Button 1"<br />&nbsp;&nbsp;&nbsp;&nbsp;bar.Controls.Add xtpControlButton, 1001, "Button 2"<br />&nbsp;&nbsp;&nbsp;&nbsp;bar.Controls.Add xtpControlEdit, 1002, "Search"<br />End Sub<br /><br />I will be using the xtpControlEdit to filter a Report Control for each character typed by the user. Being 1 character behind in its value is not good, and would result with incorrect data.<br /><br />Q: do I have the correct code, or is it that there is a change required?<br /><br />]]>
   </description>
   <pubDate>Tue, 06 Apr 2010 22:17:46 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=16557&amp;PID=57949&amp;title=solved-get-text-from-xtpcontroledit-in-commandbar#57949</guid>
  </item> 
 </channel>
</rss>