<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Controls</title><link>https://www.infopathdev.com:443/forums/43.aspx</link><description> </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: String operations on a text box control</title><link>https://www.infopathdev.com:443/forums/thread/29998.aspx</link><pubDate>Tue, 01 Jul 2008 22:25:04 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:29998</guid><dc:creator>Clay Fox</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/29998.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=29998</wfw:commentRss><description>&lt;p&gt;The hard part would be detecting character position.&lt;/p&gt;
&lt;p&gt;When you select the drop down you would leave the text region&lt;/p&gt;
&lt;p&gt;You would need to keep track of the last position or the user would need to enter that position.&lt;/p&gt;</description></item><item><title>String operations on a text box control</title><link>https://www.infopathdev.com:443/forums/thread/29957.aspx</link><pubDate>Tue, 01 Jul 2008 12:59:56 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:29957</guid><dc:creator>Anjali</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/29957.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=29957</wfw:commentRss><description>&lt;p&gt;Hi, I have a project requirement where I need to support following functionalities:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;1) My InfoPath form has a drop-down containing items with name-value pairs. &lt;/p&gt;
&lt;p&gt;2) On selection of any&amp;nbsp;item in the drop-down control, I want to append this value into a multi-line text box available on this form.&lt;/p&gt;
&lt;p&gt;3) If the user places a cursor say on the 10th character of the text in the textbox, and selects some item from the drop-down, the selected value should get inserted at this 10th location.&lt;/p&gt;
&lt;p&gt;4) If the user has selected certain text from the text box and then selects a value from the drop-down, the value should replace the selected text in the text box. &lt;/p&gt;
&lt;p&gt;&amp;nbsp;Is it possible to handle such functionality through&amp;nbsp;custom coding? Is it possible to capture the selected text / selected text&amp;nbsp;length / selected text start position of a text both in InfoPath 2007? Can you please provide me necessary inputs?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks in advance.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Anjali&lt;/p&gt;</description></item></channel></rss>