<?xml version="1.0" encoding="ISO-8859-1" ?><rss version="2.0">
<channel>
    <title>RoboRealm Forum</title>
    <link>http://www.RoboRealm.com/</link>
    <description>The newest forum threads.</description>
    <lastBuildDate>Tue, 30 Nov 1999 00:11:00 EST</lastBuildDate>
    <language>en-us</language>
    <copyright>Copyright: (C) RoboRealm, http://www.RoboRealm.com/</copyright>
    <docs>http://www.RoboRealm.com/</docs>

    <item>
        <title>No Title</title>
        <description>
        Hi Botagar&lt;br&gt;&lt;br&gt;Firstly if your more familiar with C programing you may wan to try cscript rather than vbscript &lt;a href=&quot;http://www.roborealm.com/help/CScript_Program.php&quot; target=&quot;_blank&quot;&gt;http://www.roborealm.com/&lt;wbr&gt;help/&lt;wbr&gt;CScript_&lt;wbr&gt;Program.php&lt;/a&gt;&lt;br&gt;&lt;br&gt;Then if the program is exactly what your using then try adding some spaces to your code instead of &lt;br&gt;&lt;br&gt;if(RBdX=0)then &lt;br&gt;&lt;br&gt;try&lt;br&gt;&lt;br&gt;if RBdX=0 then &lt;br&gt;&lt;br&gt;Take a look at w3schools they have a lot of good examples &lt;a href=&quot;http://www.w3schools.com/vbscript/vbscript_conditionals.asp&quot; target=&quot;_blank&quot;&gt;http://www.w3schools.com/&lt;wbr&gt;vbscript/&lt;wbr&gt;vbscript_&lt;wbr&gt;conditionals.asp&lt;/a&gt;&lt;br&gt;&lt;br&gt;Lastly microsoft did not give us any debugging tools for vbscript so I am afraid you have to go old school and use response.write onto the screen in order to get some understanding on what is going on.        </description>
        <link>http://www.roborealm.com/forum/index.php?thread_id=4548</link>
        <guid>http://www.roborealm.com/forum/index.php?thread_id=4548</guid>
        <pubDate>Tue, 30 Nov 1999 00:11:00 EST</pubDate>
    </item>
    <item>
        <title>VBscript IF statement issues</title>
        <description>
        Hi.&lt;br&gt;Background on me, i do a bit of C and C++ programming, and am trying to use the VB script plugin.&lt;br&gt;The &apos;IF&apos; statement seems to playing havoc on me, because i can&apos;t seem to find the right syntax for a comparison.&lt;br&gt;I have this code:&lt;br&gt;&lt;br&gt;RBdY = (RY-BY)&lt;br&gt;RBdX = (RX-BX)&lt;br&gt;if(RBdX=0)then&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;heading1 = 0&lt;br&gt;else&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;heading1 = (tan(RBdY/RBdX))*(180/3.14156932)&lt;br&gt;end if&lt;br&gt;SetVariable &quot;Heading&quot;, heading1&lt;br&gt;&lt;br&gt;RY, BY, RX, BX are all pixel co-ordinates i have determined before the VB script, and are read in via &apos;RX = GetVariable(&quot;RedX&quot;)&apos; etc...&lt;br&gt;Im trying to detect if RBdX is equal to 0, so i can avoid a division by zero. however the if statement always fails and i&apos;ll get a division by 0 error when RBdX is 0.&lt;br&gt;I&apos;ve tried &apos;==&apos;, also tried &apos;!=&apos; or &apos;&amp;lt;&amp;gt;&apos; and reversed the logic, nothing works.&lt;br&gt;&lt;br&gt;I can&apos;t seem to locate any debugging tools in the built in VBscript plugin, am i just being blind?&lt;br&gt;Also, is there no function for Pi?&lt;br&gt;&lt;br&gt;I appreciate any help given on this problem.&lt;br&gt;&lt;br&gt;Thanks.        </description>
        <link>http://www.roborealm.com/forum/index.php?thread_id=4548</link>
        <guid>http://www.roborealm.com/forum/index.php?thread_id=4548</guid>
        <pubDate>Tue, 30 Nov 1999 00:11:00 EST</pubDate>
    </item>
</channel>
</rss>
