<?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>Code</title><link>https://www.infopathdev.com:443/forums/45.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: C# thisXDocument.View.SelectText</title><link>https://www.infopathdev.com:443/forums/thread/14495.aspx</link><pubDate>Wed, 17 May 2006 00:02:59 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14495</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14495.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14495</wfw:commentRss><description>Not sure I have an answer for you. But using Type.Missing is the appropriate solution.</description></item><item><title>C# thisXDocument.View.SelectText</title><link>https://www.infopathdev.com:443/forums/thread/12846.aspx</link><pubDate>Fri, 21 Apr 2006 14:23:11 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:12846</guid><dc:creator>Coita Thierry</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/12846.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=12846</wfw:commentRss><description>Hi,&lt;br /&gt;&lt;br /&gt;I have try to use selecttext but what I don't understand is what is this second parameter:&lt;br /&gt; &lt;blockquote id="quote"&gt;&lt;font size="1" face="Verdana, Arial, Helvetica" id="quote"&gt;quote:&lt;hr height="1" noshade id="quote"&gt;expression.SelectText(ByRef pxnField As XMLDOMNode, [ByVal varViewContext As Variant)&lt;hr height="1" noshade id="quote"&gt;&lt;/font id="quote"&gt;&lt;/blockquote id="quote"&gt;&lt;br /&gt;It's explain like this:&lt;br /&gt; &lt;blockquote id="quote"&gt;&lt;font size="1" face="Verdana, Arial, Helvetica" id="quote"&gt;quote:&lt;hr height="1" noshade id="quote"&gt;varViewContext Optional Variant. The ID of the control that is used for the context, which is an element with the specified view context of xd:CtrlId.&lt;hr height="1" noshade id="quote"&gt;&lt;/font id="quote"&gt;&lt;/blockquote id="quote"&gt;&lt;br /&gt;&lt;br /&gt;But I don't understand what does it mean (possibly because I'm French)?&lt;br /&gt;I have try to put a &lt;font color="blue"&gt;null&lt;/font id="blue"&gt; and the name of the button who launch this event in string format (CTRL4_5) but that send me always an error. &lt;br /&gt;&lt;br /&gt;If I try with &lt;b&gt;Type.Missing&lt;/b&gt; that work!!!!!&lt;br /&gt;&lt;br /&gt;But what is this parameter ?&lt;br /&gt;&lt;br /&gt;original article:&lt;br /&lt;a target="_blank" href=http://msdn.microsoft.com/library/default.asp?url=/library/en-us/ipsdk/html/xdmthSelectText_HV01025481.asp&gt;http://msdn.microsoft.com/library/default.asp?url=/library/en-us/ipsdk/html/xdmthSelectText_HV01025481.asp&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Can you explain me what is this parameter? &lt;br /&gt;In C# this parameter is required but in Jscript there is optionnal (If you need to use it in Jscript you can declare: Missing.Value).&lt;br /&gt;&lt;br /&gt;Thanks for your feedback&lt;br /&gt;&lt;br /&gt;++&lt;br /&gt;&lt;br /&gt;Thierry</description></item></channel></rss>