<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/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>What do you mean &amp;quot;cannot use parentheses?&amp;quot;</title><link>http://blogs.msdn.com/ericlippert/archive/2003/09/15/52996.aspx</link><description>Every now and then someone will ask me what the VBScript error message "Cannot use parentheses when calling a Sub" means. I always smile when I hear that question. I tell people that the error means that you CANNOT use PARENTHESES when CALLING a SUB --</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>RE: What do you mean "cannot use parentheses?"</title><link>http://blogs.msdn.com/ericlippert/archive/2003/09/15/52996.aspx#52998</link><pubDate>Wed, 17 Sep 2003 01:39:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:52998</guid><dc:creator>Deadprogrammer</dc:creator><description>For some time I had a printout from your 1999 usenet post about this taped to my wall. Now it occupies a place of honor in my snippet database. Thank you so much for it.  
</description></item><item><title>RE: What do you mean "cannot use parentheses?"</title><link>http://blogs.msdn.com/ericlippert/archive/2003/09/15/52996.aspx#52999</link><pubDate>Wed, 17 Sep 2003 02:24:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:52999</guid><dc:creator>Eric Lippert</dc:creator><description>I live to serve!</description></item><item><title>In, Out, In-Out, Make Up Your Mind Already</title><link>http://blogs.msdn.com/ericlippert/archive/2003/09/15/52996.aspx#75981</link><pubDate>Thu, 19 Feb 2004 04:54:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:75981</guid><dc:creator>Fabulous Adventures In Coding</dc:creator><description>I was talking about reference types vs. by-reference variables a while back. Recall that both JScript and VBScript have reference types (ie, objects) but JScript does not have by-reference variables. COM supports passing variable references around, but unfortunately the intersection of early-bound COM and late-bound IDispatch is a little bit goofy.&lt;br&gt;</description></item><item><title>re: Aaargh, Part Six: One More Thing About Comments</title><link>http://blogs.msdn.com/ericlippert/archive/2003/09/15/52996.aspx#127236</link><pubDate>Thu, 06 May 2004 19:44:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:127236</guid><dc:creator>Fabulous Adventures In Coding</dc:creator><description /></item><item><title>re: Aaargh, Part Six: One More Thing About Comments</title><link>http://blogs.msdn.com/ericlippert/archive/2003/09/15/52996.aspx#127246</link><pubDate>Thu, 06 May 2004 19:50:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:127246</guid><dc:creator>Fabulous Adventures In Coding</dc:creator><description /></item><item><title>re: Aaargh, Part Six: One More Thing About Comments</title><link>http://blogs.msdn.com/ericlippert/archive/2003/09/15/52996.aspx#127261</link><pubDate>Thu, 06 May 2004 20:05:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:127261</guid><dc:creator>Fabulous Adventures In Coding</dc:creator><description /></item><item><title>More On ByRef vs ByVal</title><link>http://blogs.msdn.com/ericlippert/archive/2003/09/15/52996.aspx#127267</link><pubDate>Thu, 06 May 2004 20:08:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:127267</guid><dc:creator>Fabulous Adventures In Coding</dc:creator><description>It occurs to me that there may be some confusion about what exactly </description></item><item><title>One More Problem Found</title><link>http://blogs.msdn.com/ericlippert/archive/2003/09/15/52996.aspx#421684</link><pubDate>Wed, 25 May 2005 12:35:24 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:421684</guid><dc:creator>Curtis</dc:creator><description>DUDE ! YOU Fn ROCK !&lt;br&gt;This document is more informative than the MSDN library on this subject.&lt;br&gt;I was banging my head against the wall with this same problem for hours.  I had 2 arguments and was calling a sub from an onClick and was getting the error At lines 511-513. 8 pages with the same code.&lt;br&gt;&lt;br&gt;OK, I have one more Addition to your List of things that will cause the error.  &lt;br&gt;&lt;br&gt;after I fixed all 8 pages with this... they all started working, no errors.  HOWEVER, the main page (default.asp) that DID previously work, was now giving the same error.  I could not finger out the problem, hacked out code chunk by chunk... I mean... I ALREADY fixed it... there must be something else I missed.&lt;br&gt;&lt;br&gt;after about 20 minutes I realized that the only difference on the main page was that at the very top in the &amp;lt;BODY&amp;gt; tag  I was doing an   onLoad=&amp;quot;subLoadDefaults()&amp;quot;  none of the other pages had that.&lt;br&gt;&lt;br&gt;WITH the fixed code, that now triggered the errors way down in lines 511- 513....&lt;br&gt;now, the funny part is, that before when I had the code WRONG in those same lines, they worked quite fine and no errors.  Somehow the onLoad=&amp;quot;subLoadDefaults()&amp;quot; made the rest of the page ignore that it was wrong.&lt;br&gt;&lt;br&gt;I got rid of the onLoad all together and the page works fine now.&lt;br&gt;&lt;br&gt;THANKS !!!!</description></item><item><title>re: What do you mean &amp;quot;cannot use parentheses?&amp;quot;</title><link>http://blogs.msdn.com/ericlippert/archive/2003/09/15/52996.aspx#421779</link><pubDate>Wed, 25 May 2005 20:51:01 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:421779</guid><dc:creator>Eric Lippert</dc:creator><description>Dude!  As I said earlier, I live to serve!&lt;br&gt;&lt;br&gt;I'm not sure why your onload guy was causing a problem -- I'd have to actually see the server code in action to figure it out.  But I'm glad you've managed to sort out your problem.</description></item><item><title>re: What do you mean "cannot use parentheses?"</title><link>http://blogs.msdn.com/ericlippert/archive/2003/09/15/52996.aspx#441268</link><pubDate>Thu, 21 Jul 2005 10:50:04 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:441268</guid><dc:creator>Jan Lourens</dc:creator><description>Eric, you are a friggin' legend!  I can't thank you enough for clearing that up for me - been looking like a fool in front of new collueges for hours until I stumbled upon this site.&lt;br&gt;&lt;br&gt;Thanks.</description></item><item><title>re: What do you mean "cannot use parentheses?"</title><link>http://blogs.msdn.com/ericlippert/archive/2003/09/15/52996.aspx#449608</link><pubDate>Tue, 09 Aug 2005 23:45:58 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:449608</guid><dc:creator>Aaron</dc:creator><description>Thanks Eric, I know for certain I 'learned' this quite some time ago, and you have taught me once again.</description></item><item><title>re: What do you mean "cannot use parentheses?"</title><link>http://blogs.msdn.com/ericlippert/archive/2003/09/15/52996.aspx#511002</link><pubDate>Tue, 10 Jan 2006 02:07:19 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:511002</guid><dc:creator>anon</dc:creator><description>Another stupid thing that will trigger this error: using &lt;br&gt;&lt;br&gt;DateDiff(&amp;quot;n&amp;quot;, Date1, Date2) &lt;br&gt;&lt;br&gt;by itself (not with Response.Write or assigning it to a variable)</description></item><item><title>re: What do you mean &amp;quot;cannot use parentheses?&amp;quot;</title><link>http://blogs.msdn.com/ericlippert/archive/2003/09/15/52996.aspx#578092</link><pubDate>Tue, 18 Apr 2006 11:47:41 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:578092</guid><dc:creator>Clinton</dc:creator><description>I can not beleive that it was that simple yet I had stewed over this for ages! &amp;nbsp;Mate the lights just went on and a big thank you to you.</description></item><item><title>re: What do you mean &amp;quot;cannot use parentheses?&amp;quot;</title><link>http://blogs.msdn.com/ericlippert/archive/2003/09/15/52996.aspx#649926</link><pubDate>Wed, 28 Jun 2006 21:32:49 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:649926</guid><dc:creator>Martin</dc:creator><description>That is the greatest piece of knowledge about sub/function parameters.&lt;br&gt;&lt;br&gt;Just one question: Does this byref/byval parens apply as well in VB6 and VBA in which you can actually declared subs and functions by using the byref and byval keywords for parameters? &amp;nbsp;If it applies, does it overrides default behavior and/or coded behavior?</description></item><item><title>re: What do you mean &amp;quot;cannot use parentheses?&amp;quot;</title><link>http://blogs.msdn.com/ericlippert/archive/2003/09/15/52996.aspx#650027</link><pubDate>Wed, 28 Jun 2006 23:21:06 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:650027</guid><dc:creator>Eric Lippert</dc:creator><description>Yes, the syntax is the same for VB6/VBA. &amp;nbsp;The VBScript syntax and semantics were designed for compatibility with VB6.&lt;br&gt;</description></item><item><title>re: What do you mean "cannot use parentheses?"</title><link>http://blogs.msdn.com/ericlippert/archive/2003/09/15/52996.aspx#1151152</link><pubDate>Sun, 26 Nov 2006 08:27:28 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1151152</guid><dc:creator>Visakh</dc:creator><description>&lt;p&gt;Hi Eric,&lt;/p&gt;
&lt;p&gt;Thanks a lot for the article. This error was bugging me for an hour!!! &amp;nbsp;I am calling VBS function inside JSTL and i thot it was mixing of scripts which caused the issue. Does this mean, i have to split the 2 behaviors into 2 functions, if i have to call the Sub with 2 parameters?&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Visakh&lt;/p&gt;
</description></item><item><title>re: What do you mean "cannot use parentheses?"</title><link>http://blogs.msdn.com/ericlippert/archive/2003/09/15/52996.aspx#1258458</link><pubDate>Mon, 11 Dec 2006 13:17:50 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1258458</guid><dc:creator>Jan Philipp Giel</dc:creator><description>&lt;p&gt;I am a bit confused right now.&lt;/p&gt;
&lt;p&gt;In your newsgroup posting (1) you say&lt;/p&gt;
&lt;p&gt;n = Foo((z)) &amp;nbsp; &amp;nbsp; &amp;nbsp; ' legal, passes z by reference&lt;/p&gt;
&lt;p&gt;and in your blog it is &amp;quot;to pass x byval&amp;quot;&lt;/p&gt;
&lt;p&gt;z = f((x))&lt;/p&gt;
&lt;p&gt;I guess &amp;quot;by value&amp;quot; is the right one?&lt;/p&gt;
&lt;p&gt;(1) &lt;a rel="nofollow" target="_new" href="http://www.mvps.org/scripting/languages/eric_lippert_parens_in_procedures.txt"&gt;http://www.mvps.org/scripting/languages/eric_lippert_parens_in_procedures.txt&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>Information on calling VBS functions</title><link>http://blogs.msdn.com/ericlippert/archive/2003/09/15/52996.aspx#1268269</link><pubDate>Tue, 12 Dec 2006 23:47:28 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1268269</guid><dc:creator>Weblog</dc:creator><description>&lt;p&gt;Taken from: &lt;a rel="nofollow" target="_new" 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; What do you mean &amp;amp;quot;cannot&lt;/p&gt;
</description></item><item><title>re: What do you mean "cannot use parentheses?"</title><link>http://blogs.msdn.com/ericlippert/archive/2003/09/15/52996.aspx#1268319</link><pubDate>Wed, 13 Dec 2006 00:07:10 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1268319</guid><dc:creator>Eric Lippert</dc:creator><description>&lt;p&gt;Jan: yes, the newsgroup posting has a typo. I regret the error.&lt;/p&gt;
</description></item><item><title>re: What do you mean "cannot use parentheses?"</title><link>http://blogs.msdn.com/ericlippert/archive/2003/09/15/52996.aspx#1663621</link><pubDate>Mon, 12 Feb 2007 22:26:48 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1663621</guid><dc:creator>NikitaP</dc:creator><description>&lt;p&gt;Just add &amp;quot;Call &amp;quot; before you function call. Worked for me.&lt;/p&gt;
</description></item><item><title>Avoiding Negative Alpha &amp;raquo; VBScript Recursive List of Files in all Folders and Subfolders V2!</title><link>http://blogs.msdn.com/ericlippert/archive/2003/09/15/52996.aspx#2163280</link><pubDate>Tue, 17 Apr 2007 16:37:25 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2163280</guid><dc:creator>Avoiding Negative Alpha » VBScript Recursive List of Files in all Folders and Subfolders V2!</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://www.vleck.com/index.php/2007/04/17/vbscript-recursive-list-of-files-in-all-folders-and-subfolders-v2/"&gt;http://www.vleck.com/index.php/2007/04/17/vbscript-recursive-list-of-files-in-all-folders-and-subfolders-v2/&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>Avoiding Negative Alpha  &amp;raquo; Blog Archive   &amp;raquo; VBScript Recursive List of File Attributes/Properties in all Folders and Subfolders V2!</title><link>http://blogs.msdn.com/ericlippert/archive/2003/09/15/52996.aspx#2278206</link><pubDate>Thu, 26 Apr 2007 04:46:45 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2278206</guid><dc:creator>Avoiding Negative Alpha  » Blog Archive   » VBScript Recursive List of File Attributes/Properties in all Folders and Subfolders V2!</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://blog.vleck.com/?p=13"&gt;http://blog.vleck.com/?p=13&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>re: What do you mean "cannot use parentheses?"</title><link>http://blogs.msdn.com/ericlippert/archive/2003/09/15/52996.aspx#2554500</link><pubDate>Sat, 12 May 2007 01:35:28 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2554500</guid><dc:creator>vm</dc:creator><description>&lt;p&gt;kind of relevant.. the error could happen if you don't include javascript: tag before a javascript function call on a page having both vbscript and javascript. &lt;/p&gt;
</description></item><item><title>メモ: サンプル、 PowerShell, etc... (VBScript)</title><link>http://blogs.msdn.com/ericlippert/archive/2003/09/15/52996.aspx#3028941</link><pubDate>Fri, 01 Jun 2007 22:10:20 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3028941</guid><dc:creator>システム管理な雑記 -- Sleeve notes of a sysadmin --</dc:creator><description>&lt;p&gt;メモ: サンプル、 PowerShell, etc... (VBScript)&lt;/p&gt;
</description></item><item><title>メモ: サンプル、 PowerShell, etc... (VBScript)</title><link>http://blogs.msdn.com/ericlippert/archive/2003/09/15/52996.aspx#3029045</link><pubDate>Fri, 01 Jun 2007 22:20:55 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3029045</guid><dc:creator>システム管理な雑記 -- Sleeve notes of a sysadmin --</dc:creator><description>&lt;p&gt;メモ: サンプル、 PowerShell, etc... (VBScript)&lt;/p&gt;
</description></item><item><title>re: What do you mean "cannot use parentheses?"</title><link>http://blogs.msdn.com/ericlippert/archive/2003/09/15/52996.aspx#3264356</link><pubDate>Wed, 13 Jun 2007 11:55:07 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3264356</guid><dc:creator>k0nvikt</dc:creator><description>&lt;p&gt;Can you then tell me how do you call a sub when an error occurs in vbs &lt;/p&gt;
&lt;p&gt;Tried :&amp;quot;On Error mySub()&amp;quot; did'nt work &lt;/p&gt;
</description></item><item><title>re: What do you mean "cannot use parentheses?"</title><link>http://blogs.msdn.com/ericlippert/archive/2003/09/15/52996.aspx#3271289</link><pubDate>Wed, 13 Jun 2007 19:23:23 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3271289</guid><dc:creator>Eric Lippert</dc:creator><description>&lt;p&gt;VBScript only supports &amp;quot;On Error Resume Next&amp;quot; for error handling, sorry.&lt;/p&gt;
</description></item><item><title>re: What do you mean "cannot use parentheses?"</title><link>http://blogs.msdn.com/ericlippert/archive/2003/09/15/52996.aspx#4496563</link><pubDate>Tue, 21 Aug 2007 20:21:29 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4496563</guid><dc:creator>DrewGuy</dc:creator><description>&lt;p&gt;Hey, I just wanted to thank you. I'm incredibly new to VB of any kind, and your site provided the answer after a couple hours of struggling with this problem. You rock!&lt;/p&gt;
</description></item><item><title>re: What do you mean "cannot use parentheses?"</title><link>http://blogs.msdn.com/ericlippert/archive/2003/09/15/52996.aspx#4914195</link><pubDate>Fri, 14 Sep 2007 19:42:05 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4914195</guid><dc:creator>san</dc:creator><description>&lt;p&gt;why am i getting this error while trying to set a response.status and response.addheader&lt;/p&gt;
</description></item><item><title>VBScript nitpicking (the good kind) - Part 2</title><link>http://blogs.msdn.com/ericlippert/archive/2003/09/15/52996.aspx#5252857</link><pubDate>Wed, 03 Oct 2007 06:55:23 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:5252857</guid><dc:creator>VBScript nitpicking (the good kind) - Part 2</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://www.advancedqtp.com/2007/10/vbscript-nitpicking-part-2/"&gt;http://www.advancedqtp.com/2007/10/vbscript-nitpicking-part-2/&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>re: What do you mean "cannot use parentheses?"</title><link>http://blogs.msdn.com/ericlippert/archive/2003/09/15/52996.aspx#5279157</link><pubDate>Fri, 05 Oct 2007 01:06:49 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:5279157</guid><dc:creator>Beez</dc:creator><description>&lt;p&gt;This is evil. &amp;nbsp;I wonder if this is a Basic artifact? &amp;nbsp;I hated this and just spent an afternoon trying to figure out why my subroutine's change to the value of it's parameter did not persist when the subroutine returned *cry*&lt;/p&gt;
</description></item><item><title>?????????? ??-VBScript - ?????? 2</title><link>http://blogs.msdn.com/ericlippert/archive/2003/09/15/52996.aspx#5347578</link><pubDate>Sun, 07 Oct 2007 21:37:33 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:5347578</guid><dc:creator>?????????? ??-VBScript - ?????? 2</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://www.advancedqtp.co.il/2007/10/vbscript-nitpicking-part-2/"&gt;http://www.advancedqtp.co.il/2007/10/vbscript-nitpicking-part-2/&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>Famous Quotes &amp;raquo; Fabulous Adventures In Coding : More On ByRef vs ByVal</title><link>http://blogs.msdn.com/ericlippert/archive/2003/09/15/52996.aspx#6985328</link><pubDate>Sat, 05 Jan 2008 05:18:17 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6985328</guid><dc:creator>Famous Quotes » Fabulous Adventures In Coding : More On ByRef vs ByVal</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://famousquotes.247blogging.info/?p=114"&gt;http://famousquotes.247blogging.info/?p=114&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>re: What do you mean "cannot use parentheses?"</title><link>http://blogs.msdn.com/ericlippert/archive/2003/09/15/52996.aspx#7655522</link><pubDate>Wed, 13 Feb 2008 01:16:39 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7655522</guid><dc:creator>dKes</dc:creator><description>&lt;p&gt;Hi Eric,&lt;/p&gt;
&lt;p&gt;I get the error message above. Here is a part of script - what is wrong?&lt;/p&gt;
&lt;p&gt;Set objShell = WScript.CreateObject(&amp;quot;WScript.Shell&amp;quot;)&lt;/p&gt;
&lt;p&gt;objShell.Run (&amp;quot;ftp -s:&amp;quot; &amp;amp; chr(34) &amp;amp; strFTPScriptFileName &amp;amp; chr(34), , True)&lt;/p&gt;
&lt;p&gt;dKes&lt;/p&gt;
</description></item><item><title>re: What do you mean "cannot use parentheses?"</title><link>http://blogs.msdn.com/ericlippert/archive/2003/09/15/52996.aspx#8008018</link><pubDate>Mon, 03 Mar 2008 22:12:14 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8008018</guid><dc:creator>JAaronAnderson.com</dc:creator><description>&lt;p&gt;the examples of &amp;quot;to pass x byref, y byref: &amp;quot; and others do not make sense to me? Please help me understand...&lt;/p&gt;
&lt;p&gt;thx&lt;/p&gt;
</description></item><item><title>re: What do you mean "cannot use parentheses?"</title><link>http://blogs.msdn.com/ericlippert/archive/2003/09/15/52996.aspx#8008079</link><pubDate>Mon, 03 Mar 2008 22:17:52 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8008079</guid><dc:creator>Eric Lippert</dc:creator><description>&lt;p&gt;I wrote an article about that a mere six hours after I wrote the article above! :-)&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://blogs.msdn.com/ericlippert/archive/2003/09/15/53005.aspx"&gt;http://blogs.msdn.com/ericlippert/archive/2003/09/15/53005.aspx&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>VBScript Nitpicking (the good kind) - part.2 | AdvancedQTP</title><link>http://blogs.msdn.com/ericlippert/archive/2003/09/15/52996.aspx#8344483</link><pubDate>Sun, 30 Mar 2008 20:59:31 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8344483</guid><dc:creator>VBScript Nitpicking (the good kind) - part.2 | AdvancedQTP</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://qtp.solmarkn.com/first-steps/articles-first-steps-knowledge-base/vbscript-techniques/vbscript-nitpicking-the-good-kind-part2/"&gt;http://qtp.solmarkn.com/first-steps/articles-first-steps-knowledge-base/vbscript-techniques/vbscript-nitpicking-the-good-kind-part2/&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>re: What do you mean "cannot use parentheses?"</title><link>http://blogs.msdn.com/ericlippert/archive/2003/09/15/52996.aspx#8503850</link><pubDate>Wed, 14 May 2008 20:58:23 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8503850</guid><dc:creator>SD</dc:creator><description>&lt;p&gt;Great explanation. &amp;nbsp;Thank you!!!&lt;/p&gt;
</description></item><item><title>Fehler Nr.13 | hilpers</title><link>http://blogs.msdn.com/ericlippert/archive/2003/09/15/52996.aspx#9348332</link><pubDate>Tue, 20 Jan 2009 19:06:39 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9348332</guid><dc:creator>Fehler Nr.13 | hilpers</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://www.hilpers.com/230755-fehler-nr-13-a"&gt;http://www.hilpers.com/230755-fehler-nr-13-a&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>response.writeLine | keyongtech</title><link>http://blogs.msdn.com/ericlippert/archive/2003/09/15/52996.aspx#9362192</link><pubDate>Thu, 22 Jan 2009 06:38:51 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9362192</guid><dc:creator>response.writeLine | keyongtech</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://www.keyongtech.com/1164748-response-writeline"&gt;http://www.keyongtech.com/1164748-response-writeline&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>Evaluation d'expression arithm?tiques | hilpers</title><link>http://blogs.msdn.com/ericlippert/archive/2003/09/15/52996.aspx#9367810</link><pubDate>Thu, 22 Jan 2009 17:20:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9367810</guid><dc:creator>Evaluation d'expression arithm?tiques | hilpers</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://www.hilpers.fr/932108-evaluation-dexpression-arithmetiques"&gt;http://www.hilpers.fr/932108-evaluation-dexpression-arithmetiques&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>re: What do you mean "cannot use parentheses?"</title><link>http://blogs.msdn.com/ericlippert/archive/2003/09/15/52996.aspx#9382255</link><pubDate>Thu, 29 Jan 2009 05:45:27 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9382255</guid><dc:creator>Randy</dc:creator><description>&lt;p&gt;Eric,&lt;/p&gt;
&lt;p&gt;Great post.&lt;/p&gt;
&lt;p&gt;I have the following in a file show.vbs:&lt;/p&gt;
&lt;p&gt;Sub Show()&lt;/p&gt;
&lt;p&gt; &amp;nbsp; MsgBox &amp;quot;Show&amp;quot;&lt;/p&gt;
&lt;p&gt;End Sub&lt;/p&gt;
&lt;p&gt;call Show()&lt;/p&gt;
&lt;p&gt;call Show&lt;/p&gt;
&lt;p&gt;Show()&lt;/p&gt;
&lt;p&gt;Show&lt;/p&gt;
&lt;p&gt;All of these invocations seem to work. &amp;nbsp;I would have thought that two of these would be incorrect. &amp;nbsp;Or is there something I'm missing with the no arguments scenario? &amp;nbsp;e.g. in VBA if you were to try Show() it would tell you that &amp;quot;Expected: =&amp;quot; which makes sense under 3.1 -- VBA sees the parentheses and assumes that the call should be a Function so there should be an assignment.&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;
</description></item><item><title>re: What do you mean "cannot use parentheses?"</title><link>http://blogs.msdn.com/ericlippert/archive/2003/09/15/52996.aspx#9595417</link><pubDate>Fri, 08 May 2009 03:42:04 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9595417</guid><dc:creator>Al Dunbar</dc:creator><description>&lt;p&gt;show(a) does not error out, however it may not do exactly as you'd expect for the reasons given long ago by Eric. Anyway, I'm not surprised that none of the four examples above errors out, as I see the issue mainly showing up when the number of arguments is greater than one.&lt;/p&gt;
</description></item><item><title>re: What do you mean "cannot use parentheses?"</title><link>http://blogs.msdn.com/ericlippert/archive/2003/09/15/52996.aspx#9726025</link><pubDate>Thu, 11 Jun 2009 10:11:37 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9726025</guid><dc:creator>I talk to VBscript</dc:creator><description>&lt;p&gt;I read your explaination once and didnt understand it.&lt;/p&gt;
&lt;p&gt;i tried it out and nothing worked.&lt;/p&gt;
&lt;p&gt;I read it again and swore at the screen severl times and still nothing worked.&lt;/p&gt;
&lt;p&gt;I read it again and tried it again and swore a lot more and then started talking to my reflection in the screen and things started to work.&lt;/p&gt;
&lt;p&gt;I owe you beer for the good of my mental health.&lt;/p&gt;
</description></item><item><title>re: What do you mean "cannot use parentheses?"</title><link>http://blogs.msdn.com/ericlippert/archive/2003/09/15/52996.aspx#9930586</link><pubDate>Tue, 01 Dec 2009 05:51:11 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9930586</guid><dc:creator>all</dc:creator><description>&lt;p&gt;how to write this?&lt;/p&gt;
&lt;p&gt;Set WshShell = WScript.CreateObject(&amp;quot;WScript.Shell&amp;quot;)&lt;/p&gt;
&lt;p&gt;WshShell.Run(iexplore -k &lt;a rel="nofollow" target="_new" href="http://support.microsoft.com/kb/154780"&gt;http://support.microsoft.com/kb/154780&lt;/a&gt;, 1, true)&lt;/p&gt;
</description></item><item><title>re: What do you mean "cannot use parentheses?"</title><link>http://blogs.msdn.com/ericlippert/archive/2003/09/15/52996.aspx#9932831</link><pubDate>Fri, 04 Dec 2009 23:21:58 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9932831</guid><dc:creator>JoeNo1</dc:creator><description>&lt;p&gt;This has been always confusing for me. Here, I find a perfect answer.&lt;/p&gt;
&lt;p&gt;Thank you so much, Eric.&lt;/p&gt;
&lt;p&gt;Joe&lt;/p&gt;
</description></item><item><title>re: What do you mean "cannot use parentheses?"</title><link>http://blogs.msdn.com/ericlippert/archive/2003/09/15/52996.aspx#9933605</link><pubDate>Mon, 07 Dec 2009 18:26:33 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9933605</guid><dc:creator>BigJeff5</dc:creator><description>&lt;p&gt;&amp;gt;all said:&lt;/p&gt;
&lt;p&gt;&amp;gt;how to write this?&lt;/p&gt;
&lt;p&gt;&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;gt;Set WshShell = WScript.CreateObject(&amp;quot;WScript.Shell&amp;quot;)&lt;/p&gt;
&lt;p&gt;&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;gt;WshShell.Run(iexplore -k &lt;a rel="nofollow" target="_new" href="http://support.microsoft.com/kb/154780"&gt;http://support.microsoft.com/kb/154780&lt;/a&gt;, 1, true)&lt;/p&gt;
&lt;p&gt;You should use quotation marks around the command, first off. &amp;nbsp;That wasn't the cause of your problem but it would likely just cause another error after you fixed the parenthesis error.&lt;/p&gt;
&lt;p&gt;There are two ways to correctly call the function, you can either preface the function with &amp;quot;Call&amp;quot; like this:&lt;/p&gt;
&lt;p&gt;Call WshShell.Run(&amp;quot;iexplore -k &lt;a rel="nofollow" target="_new" href="http://support.microsoft.com/kb/154780"&gt;http://support.microsoft.com/kb/154780&lt;/a&gt;&amp;quot;, 1, true)&lt;/p&gt;
&lt;p&gt;Or you can simply remove the parenthises:&lt;/p&gt;
&lt;p&gt;WshShell.Run &amp;quot;iexplore -k &lt;a rel="nofollow" target="_new" href="http://support.microsoft.com/kb/154780"&gt;http://support.microsoft.com/kb/154780&lt;/a&gt;&amp;quot;, 1, true&lt;/p&gt;
&lt;p&gt;This is because, as Eric explained in his article, VBSCRIPT sees the parenthesis in function(myarg) as telling it to pass myarg by reference instead of by value. &amp;nbsp;It does NOT see the parenthesis as describing where the list of arguments start and end. &amp;nbsp;Since the comma tells VBSCRIPT where the next argument is, and it is expecting a parenthesis before the comma, it puts two and two together and tells you you can't use parenthesis (around the list of arguments) when calling a sub.&lt;/p&gt;
&lt;p&gt;If it's still confusing to you, then just remember to allways use &amp;quot;Call&amp;quot; before calling a subroutine and it will behave the way you expect it to, because Call does require all arguments to be within a set of parenthesis. &amp;nbsp;You can wrap individual arguments in the parenthesis to set them to by reference instead of by value.&lt;/p&gt;
</description></item></channel></rss>