<?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>Newbie Questions</title><link>https://www.infopathdev.com:443/forums/39.aspx</link><description>New to InfoPath? Search to see if your question has already been answered. If it has not, then ask it here or the appropriate topic forum.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: How to reference a text box using VBscript</title><link>https://www.infopathdev.com:443/forums/thread/19366.aspx</link><pubDate>Thu, 26 Apr 2007 04:25:38 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:19366</guid><dc:creator>K.Ramana Reddy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/19366.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=19366</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;I tried&amp;nbsp;below code, it is worked for me, you try with this code.&lt;/p&gt;&lt;p&gt;Dim X &lt;/p&gt;&lt;p&gt;set X = createobject(&amp;quot;WSCRIPT.Network&amp;quot;)&amp;nbsp; &lt;/p&gt;&lt;p&gt;XDocument.DOM.selectSingleNode(&amp;quot;/my:myFields/my:field1&amp;quot;).text=X.UserName &lt;/p&gt;</description></item><item><title>Re: How to reference a text box using VBscript</title><link>https://www.infopathdev.com:443/forums/thread/19334.aspx</link><pubDate>Tue, 24 Apr 2007 19:29:26 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:19334</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/19334.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=19334</wfw:commentRss><description>Please ignore the suggestion for using &amp;quot;var = new ...&amp;quot; that is for JScript, not VBScript. It won&amp;#39;t work in your situation because you are using VBScript.</description></item><item><title>Re: How to reference a text box using VBscript</title><link>https://www.infopathdev.com:443/forums/thread/19325.aspx</link><pubDate>Tue, 24 Apr 2007 15:31:46 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:19325</guid><dc:creator>aehicks</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/19325.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=19325</wfw:commentRss><description>&lt;p&gt;Thanks Ramana and Shiva for your help.&amp;nbsp; Unfortunately, neither solutions are working yet. When I use the following code&lt;/p&gt;&lt;p&gt;Dim X&lt;br /&gt;set X = createobject(&amp;quot;WSCRIPT.Network&amp;quot;)&lt;br /&gt;dim user&lt;br /&gt;user=x.UserName&lt;/p&gt;&lt;p&gt;I get an error that says &amp;quot;ActiveX component can&amp;#39;t create object: &amp;#39;WScript.Network&amp;#39;.&lt;/p&gt;&lt;p&gt;&amp;nbsp;When I use var&amp;nbsp;x = new ActiveXObject(&amp;quot;Wscript.Network&amp;quot;); instead of set X = createobject(&amp;quot;WSCRIPT.Network&amp;quot;) I get an invalid character error.&amp;nbsp; I&amp;#39;m guessing this is because this isn&amp;#39;t VBscript.&lt;/p&gt;&lt;p&gt;&amp;nbsp;Any suggestions?&amp;nbsp; I appreciate your help.&lt;/p&gt;</description></item><item><title>Re: How to reference a text box using VBscript</title><link>https://www.infopathdev.com:443/forums/thread/19318.aspx</link><pubDate>Tue, 24 Apr 2007 10:52:12 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:19318</guid><dc:creator>B.Shiva Prasad</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/19318.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=19318</wfw:commentRss><description>&lt;p&gt;Hi aehicks,&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;instead of &amp;quot;set x = CreateObject(&amp;quot;WScript.network&amp;quot;)&amp;quot; try &lt;/p&gt;&lt;p&gt;var&amp;nbsp;x = new ActiveXObject(&amp;quot;Wscript.Network&amp;quot;);&lt;/p&gt;&lt;p&gt;It will work&lt;/p&gt;</description></item><item><title>Re: How to reference a text box using VBscript</title><link>https://www.infopathdev.com:443/forums/thread/19313.aspx</link><pubDate>Tue, 24 Apr 2007 09:11:41 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:19313</guid><dc:creator>K.Ramana Reddy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/19313.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=19313</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;what error you are getting?&lt;/p&gt;&lt;p&gt;Did u &lt;span style="font-size:10pt;font-family:Arial;"&gt;initialize&amp;nbsp;&lt;/span&gt;&amp;nbsp;the x and user variables as shown below?&amp;nbsp;&lt;/p&gt;&lt;p&gt;Dim X&lt;br /&gt;set X = createobject(&amp;quot;WSCRIPT.Network&amp;quot;)&lt;br /&gt;dim user&lt;br /&gt;user=x.UserName&lt;/p&gt;&lt;p&gt;I hope this will help you.&lt;/p&gt;</description></item><item><title>Re: How to reference a text box using VBscript</title><link>https://www.infopathdev.com:443/forums/thread/19303.aspx</link><pubDate>Mon, 23 Apr 2007 16:24:38 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:19303</guid><dc:creator>aehicks</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/19303.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=19303</wfw:commentRss><description>&lt;p&gt;Thank you for your fast replies.&amp;nbsp; I am anxious to your code out, however, I am getting an error with the first line of code that I already have.&amp;nbsp; Here is what it looks like:&lt;/p&gt;&lt;p&gt;&amp;nbsp;set x = CreateObject(&amp;quot;WScript.network&amp;quot;) &lt;/p&gt;&lt;p&gt;user = x.UserName &lt;/p&gt;&lt;p&gt;XDocument.DOM.selectSingleNode(&amp;quot;/my:myFields/my:Signature1&amp;quot;).text = user&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Any thoughts on why this code isn&amp;#39;t working?&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: How to reference a text box using VBscript</title><link>https://www.infopathdev.com:443/forums/thread/19288.aspx</link><pubDate>Mon, 23 Apr 2007 04:40:45 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:19288</guid><dc:creator>K.Ramana Reddy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/19288.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=19288</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;XDocument.DOM.selectSingleNode(&amp;quot;/my:myFields/my:Signature&amp;quot;).text = user&lt;/p&gt;&lt;p&gt;This is the VB script code to send user value into Signature.&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I hope this will help you.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: How to reference a text box using VBscript</title><link>https://www.infopathdev.com:443/forums/thread/19279.aspx</link><pubDate>Fri, 20 Apr 2007 23:41:49 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:19279</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/19279.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=19279</wfw:commentRss><description>&lt;p&gt;Someone will have to help with the conversion (it shouldn&amp;#39;t be very different), but in JScript you would write:&lt;/p&gt;&lt;p&gt;XDocument.DOM.selectSingleNode(&amp;quot;/my:myFields/my:Signature&amp;quot;).text = user;&lt;/p&gt;</description></item><item><title>How to reference a text box using VBscript</title><link>https://www.infopathdev.com:443/forums/thread/19270.aspx</link><pubDate>Fri, 20 Apr 2007 16:18:08 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:19270</guid><dc:creator>aehicks</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/19270.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=19270</wfw:commentRss><description>I have a button on my Infopath 2003 form that, when clicked, runs some code to pull the user&amp;#39;s login name.&amp;nbsp; It stores this data in a variable called &amp;quot;user&amp;quot;.&amp;nbsp; I would like to then push the value in &amp;quot;user&amp;quot; to a textbox called &amp;quot;Signature&amp;quot;.&amp;nbsp; I realize that this shouldn&amp;#39;t be that difficult, but am unfamiliar with InfoPath and VBscript.</description></item></channel></rss>