<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://community.activestate.com" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>ActiveState Community Site - VBScript Converter and whaddaya mean &amp;quot;Syntax error&amp;quot;? - Comments</title>
 <link>http://community.activestate.com/forum-topic/vbscript-converter-and-whaddaya-mean-syntax-error</link>
 <description>Comments for &quot;VBScript Converter and whaddaya mean &quot;Syntax error&quot;?&quot;</description>
 <language>en</language>
<item>
 <title>It&#039;s a bug in the parser</title>
 <link>http://community.activestate.com/forum-topic/vbscript-converter-and-whaddaya-mean-syntax-error#comment-4678</link>
 <description>&lt;p&gt;I repro&#039;ed it with this code:&lt;/p&gt;
&lt;div class=&quot;geshi-block&quot;&gt;
&lt;div class=&quot;geshifilter javascript&quot; style=&quot;font-family: monospace;&quot;&gt;foo = Array&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #CC0000;&quot;&gt;1&lt;/span&gt;, Array&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #CC0000;&quot;&gt;3&lt;/span&gt;, &lt;span style=&quot;color: #CC0000;&quot;&gt;4&lt;/span&gt;, &lt;span style=&quot;color: #CC0000;&quot;&gt;5&lt;/span&gt;, &lt;span style=&quot;color: #CC0000;&quot;&gt;6&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;, &lt;span style=&quot;color: #CC0000;&quot;&gt;3&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;br /&gt;
a = foo&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #CC0000;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #CC0000;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;br /&gt;
wscript.&lt;span style=&quot;color: #006600;&quot;&gt;echo&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;a&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;/div&gt;
&lt;pre class=&quot;geshi-plain&quot;&gt;foo = Array(1, Array(3, 4, 5, 6), 3)
a = foo(1)(2)
wscript.echo(a)&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;Bug logged at &lt;a href=&quot;http://bugs.activestate.com/show_bug.cgi?id=75710&quot; title=&quot;http://bugs.activestate.com/show_bug.cgi?id=75710&quot;&gt;http://bugs.activestate.com/show_bug.cgi?id=75710&lt;/a&gt;&lt;/p&gt;
</description>
 <pubDate>Mon, 17 Mar 2008 09:49:26 -0700</pubDate>
 <dc:creator>ericp</dc:creator>
 <guid isPermaLink="false">comment 4678 at http://community.activestate.com</guid>
</item>
<item>
 <title>VBScript Converter and whaddaya mean &quot;Syntax error&quot;?</title>
 <link>http://community.activestate.com/forum-topic/vbscript-converter-and-whaddaya-mean-syntax-error</link>
 <description>&lt;p&gt;Okay, maybe at a push I can understand the translator having issues with&lt;br /&gt;
&lt;code class=&quot;geshifilter&quot;&gt;On Error GoTo 0&lt;/code&gt;&lt;br /&gt;
but what&#039;s the story with complaining about the&lt;br /&gt;
&lt;code class=&quot;geshifilter&quot;&gt;GetEnv = .Environment( &quot;PROCESS&quot; )( UCase( sEnvVar ) )&lt;/code&gt;&lt;br /&gt;
in this &lt;/p&gt;
&lt;pre class=&quot;geshifilter&quot;&gt;Function GetEnv( sEnvVar )
      With CreateObject( &quot;WScript.Shell&quot; )
          GetEnv = .Environment( &quot;PROCESS&quot; )( UCase( sEnvVar ) )
      End With
  End Function&lt;/pre&gt;&lt;p&gt;?&lt;/p&gt;
&lt;p&gt;I do that kind of stuff fairly often. And it&#039;s certainly not a syntax error in VBScript!&lt;/p&gt;
&lt;p&gt;Anyone know why this is catching in VC&#039;s throat?&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;
Bruce.&lt;/p&gt;
</description>
 <comments>http://community.activestate.com/forum-topic/vbscript-converter-and-whaddaya-mean-syntax-error#comments</comments>
 <category domain="http://community.activestate.com/forums/perl-discussion-0">Perl discussion</category>
 <category domain="http://community.activestate.com/os/windows-xp-pro">Windows XP Pro</category>
 <pubDate>Mon, 17 Mar 2008 01:37:29 -0700</pubDate>
 <dc:creator>axtens</dc:creator>
 <guid isPermaLink="false">2080 at http://community.activestate.com</guid>
</item>
</channel>
</rss>
