<?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: Convert to JScript help</title><link>https://www.infopathdev.com:443/forums/thread/4186.aspx</link><pubDate>Thu, 08 Mar 2007 08:00:15 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:4186</guid><dc:creator>K.Ramana Reddy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/4186.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=4186</wfw:commentRss><description>Hi, sorry for my mistake,&lt;br /&gt;&lt;br /&gt;Change the string to var,&lt;br /&gt;var txtPath;&lt;br /&gt;var txtName;&lt;br /&gt;var GMSRef;&lt;br /&gt;&lt;br /&gt;I hope it will work for you.&lt;br /&gt;</description></item><item><title>Re: Convert to JScript help</title><link>https://www.infopathdev.com:443/forums/thread/4185.aspx</link><pubDate>Wed, 07 Mar 2007 15:15:17 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:4185</guid><dc:creator>JLProgrammer</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/4185.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=4185</wfw:commentRss><description>Thanks for your help! &lt;br /&gt;I'm receiving this error now:&lt;br /&gt;"InfoPath cannot open the selected form because of an error in the form's code.&lt;br /&gt;The following error occurred:&lt;br /&gt;&lt;br /&gt;Expected ';'&lt;br /&gt;File:script.js&lt;br /&gt;Line:24&lt;br /&gt;string txtPath;"&lt;br /&gt;&lt;br /&gt;Line 24 is the 1st line of code:&lt;br /&gt;"string txtPath;"&lt;br /&gt;&lt;br /&gt;Any ideas why this is happening? &lt;br /&gt;&lt;br /&gt;Thanks again!</description></item><item><title>Re: Convert to JScript help</title><link>https://www.infopathdev.com:443/forums/thread/4184.aspx</link><pubDate>Wed, 07 Mar 2007 05:37:46 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:4184</guid><dc:creator>K.Ramana Reddy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/4184.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=4184</wfw:commentRss><description>Hi,&lt;br /&gt;&lt;br /&gt;Only we have to change SUB to function, every end of statement we have to give ; and we have to declare data types int,string and ... instead of Dim.&lt;br /&gt;&lt;br /&gt;check this this code, it will help you,&lt;br /&gt;&lt;br /&gt;function CTRL2_5::OnClick(eventObj)&lt;br /&gt;{&lt;br /&gt;string txtPath;&lt;br /&gt;string txtName;&lt;br /&gt;string GMSRef;&lt;br /&gt;&lt;br /&gt;GMSRef = XDocument.DOM.selectSingleNode("my:myFields/my:field2").text;&lt;br /&gt;txtPath = "Z:\My Documents\InfoPath Forms\";&lt;br /&gt;txtName = ".xml";&lt;br /&gt;&lt;br /&gt;XDocument.SaveAs(txtpath &amp; GMSRef &amp; txtName);&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;thisXDocument.Application.Close(true);&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;I hope this will help you.</description></item><item><title>Convert to JScript help</title><link>https://www.infopathdev.com:443/forums/thread/1895.aspx</link><pubDate>Tue, 06 Mar 2007 21:37:20 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:1895</guid><dc:creator>JLProgrammer</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/1895.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=1895</wfw:commentRss><description>Can anyone help me out in converting the following VBScript to JScript? :-If not can you give me some tips on how to learn how to convert from 1 language to another? &lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;Sub CTRL2_5_OnClick(eventObj)&lt;br /&gt;Dim txtPath&lt;br /&gt;Dim txtName&lt;br /&gt;Dim GMSRef&lt;br /&gt;&lt;br /&gt;GMSRef = XDocument.DOM.selectSingleNode("my:myFields/my:field2").text&lt;br /&gt;txtPath = "Z:\My Documents\InfoPath Forms\"&lt;br /&gt;txtName = ".xml"&lt;br /&gt;&lt;br /&gt;XDocument.SaveAs(txtpath &amp; GMSRef &amp; txtName)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;thisXDocument.Application.Close(true)&lt;br /&gt;End Sub&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Thanks for ANY help!!!</description></item></channel></rss>