<?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>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: VBScript Copy &amp; Paste Section</title><link>https://www.infopathdev.com:443/forums/thread/33652.aspx</link><pubDate>Wed, 29 Oct 2008 16:50:06 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:33652</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/33652.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=33652</wfw:commentRss><description>&lt;p&gt;This is an old post, but I ran into&amp;nbsp;a similar&amp;nbsp;issue myself today, and as the error suggests, the correct syntax is to not use parentheses:&lt;/p&gt;
&lt;p&gt;&lt;em&gt;XDocument.View.ExecuteAction &amp;quot;XCollection::Insert&amp;quot;, &amp;quot;lotBreakdownRT_41&amp;quot;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;alternatively, you can precede the statement with the Call keyword and use parentheses:&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;Call&lt;/strong&gt; XDocument.View.ExecuteAction(&amp;quot;XCollection::Insert&amp;quot;, &amp;quot;lotBreakdownRT_41&amp;quot;)&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;For more information, see:&lt;br /&gt;&lt;a href="http://blogs.msdn.com/ericlippert/archive/2003/09/15/52996.aspx"&gt;http://blogs.msdn.com/ericlippert/archive/2003/09/15/52996.aspx&lt;/a&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>VBScript Copy &amp; Paste Section</title><link>https://www.infopathdev.com:443/forums/thread/19931.aspx</link><pubDate>Tue, 15 May 2007 14:21:14 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:19931</guid><dc:creator>edove</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/19931.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=19931</wfw:commentRss><description>I am using the code below to copy a section in a repeating section, add a new section and paste into it so both sections are the same.&lt;br /&gt;&lt;br /&gt;I was using JS but I&amp;#39;ve converted to VBScript and it doesn&amp;#39;t like the xCollection line. I get a message on that line saying &amp;quot;Cannot use parentheses when calling a Sub&amp;quot;&lt;br /&gt;&lt;br /&gt;&lt;i&gt;objXMLNodes = XDocument.DOM.selectSingleNode(&amp;quot;/my:myFields/my:lotBreakdown/my:lotBreakdownRT&amp;quot;)&lt;br /&gt;XDocument.View.SelectNodes(objXMLNodes)&lt;br /&gt;XDocument.View.ExecuteAction(&amp;quot;Copy&amp;quot;)&lt;br /&gt;XDocument.View.ExecuteAction(&amp;quot;XCollection::Insert&amp;quot;, &amp;quot;lotBreakdownRT_41&amp;quot;)&lt;br /&gt;XDocument.View.ExecuteAction(&amp;quot;Paste&amp;quot;)&lt;br /&gt;&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;Any ideas how to do the insert in VBS?&lt;br /&gt;&lt;br /&gt;</description></item></channel></rss>