<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: vba eval broken?. in VBA Forum</title>
    <link>https://forums.autodesk.com/t5/vba-forum/vba-eval-broken/m-p/1689721#M33244</link>
    <description>But this makes no sense. Now there is no possibility to run subs in other dvbs with inparameters. This must be faulty behaivour.. Or is there another way to call a function in another dvb with input parameters? (And dont say sending it as commandline because thats is reallly not a good way..) I mean if you can evaluate a function like msgbox with input parameters, why cant you evaluate another function.. ? &lt;BR /&gt;
&lt;BR /&gt;
/Rikard</description>
    <pubDate>Wed, 28 Jun 2006 21:29:22 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2006-06-28T21:29:22Z</dc:date>
    <item>
      <title>vba eval broken?.</title>
      <link>https://forums.autodesk.com/t5/vba-forum/vba-eval-broken/m-p/1689719#M33242</link>
      <description>Hello, I have stumbled on a problem. If you try to use eval to call user defined subs autocad will generate an error.&lt;BR /&gt;
Example:&lt;BR /&gt;
&lt;BR /&gt;
Public Sub TestEval1() &lt;BR /&gt;
   Eval "MsgBox ""This works"""&lt;BR /&gt;
End Sub&lt;BR /&gt;
&lt;BR /&gt;
but &lt;BR /&gt;
&lt;BR /&gt;
Public Sub TestEval2() &lt;BR /&gt;
    Eval "ShowMsgBox ""Doesnt work.""" &lt;BR /&gt;
End Sub &lt;BR /&gt;
&lt;BR /&gt;
Public Sub ShowMsgBox(msg As String) &lt;BR /&gt;
    MsgBox msg &lt;BR /&gt;
End Sub &lt;BR /&gt;
&lt;BR /&gt;
Calling user defined funktions with eval worked in ver 2002 but doesnt work since atleast ver 2005.&lt;BR /&gt;
&lt;BR /&gt;
Have anyone noticed this problem before?. &lt;BR /&gt;
&lt;BR /&gt;
/Rikard</description>
      <pubDate>Wed, 28 Jun 2006 07:50:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/vba-eval-broken/m-p/1689719#M33242</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-06-28T07:50:21Z</dc:date>
    </item>
    <item>
      <title>Re: vba eval broken?.</title>
      <link>https://forums.autodesk.com/t5/vba-forum/vba-eval-broken/m-p/1689720#M33243</link>
      <description>seems as though it was broken in 2002 and they fixed it in a later version.&lt;BR /&gt;
&lt;BR /&gt;
the whole point of using eval is so you don't have to create subs, funs, &lt;BR /&gt;
etc.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;REDEM&gt; wrote in message news:5221155@discussion.autodesk.com...&lt;BR /&gt;
Hello, I have stumbled on a problem. If you try to use eval to call user &lt;BR /&gt;
defined subs autocad will generate an error.&lt;BR /&gt;
Example:&lt;BR /&gt;
&lt;BR /&gt;
Public Sub TestEval1()&lt;BR /&gt;
   Eval "MsgBox ""This works"""&lt;BR /&gt;
End Sub&lt;BR /&gt;
&lt;BR /&gt;
but&lt;BR /&gt;
&lt;BR /&gt;
Public Sub TestEval2()&lt;BR /&gt;
    Eval "ShowMsgBox ""Doesnt work."""&lt;BR /&gt;
End Sub&lt;BR /&gt;
&lt;BR /&gt;
Public Sub ShowMsgBox(msg As String)&lt;BR /&gt;
    MsgBox msg&lt;BR /&gt;
End Sub&lt;BR /&gt;
&lt;BR /&gt;
Calling user defined funktions with eval worked in ver 2002 but doesnt work &lt;BR /&gt;
since atleast ver 2005.&lt;BR /&gt;
&lt;BR /&gt;
Have anyone noticed this problem before?.&lt;BR /&gt;
&lt;BR /&gt;
/Rikard&lt;/REDEM&gt;</description>
      <pubDate>Wed, 28 Jun 2006 16:46:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/vba-eval-broken/m-p/1689720#M33243</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-06-28T16:46:29Z</dc:date>
    </item>
    <item>
      <title>Re: vba eval broken?.</title>
      <link>https://forums.autodesk.com/t5/vba-forum/vba-eval-broken/m-p/1689721#M33244</link>
      <description>But this makes no sense. Now there is no possibility to run subs in other dvbs with inparameters. This must be faulty behaivour.. Or is there another way to call a function in another dvb with input parameters? (And dont say sending it as commandline because thats is reallly not a good way..) I mean if you can evaluate a function like msgbox with input parameters, why cant you evaluate another function.. ? &lt;BR /&gt;
&lt;BR /&gt;
/Rikard</description>
      <pubDate>Wed, 28 Jun 2006 21:29:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/vba-eval-broken/m-p/1689721#M33244</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-06-28T21:29:22Z</dc:date>
    </item>
    <item>
      <title>Re: vba eval broken?.</title>
      <link>https://forums.autodesk.com/t5/vba-forum/vba-eval-broken/m-p/1689722#M33245</link>
      <description>Your examples worked for me in both 2000i and 2005. Any typo's on your end.&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
----&lt;BR /&gt;
Ed&lt;BR /&gt;
----</description>
      <pubDate>Wed, 28 Jun 2006 21:41:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/vba-eval-broken/m-p/1689722#M33245</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-06-28T21:41:43Z</dc:date>
    </item>
    <item>
      <title>Re: vba eval broken?.</title>
      <link>https://forums.autodesk.com/t5/vba-forum/vba-eval-broken/m-p/1689723#M33246</link>
      <description>&lt;OR is="" there="" another="" way="" to="" call="" a="" function="" in="" another="" dvb="" with="" input=""&gt;&lt;BR /&gt;
parameters?&lt;BR /&gt;
Add a reference to the project and call you function.&lt;BR /&gt;
&lt;BR /&gt;
&lt;REDEM&gt; wrote in message news:5222232@discussion.autodesk.com...&lt;BR /&gt;
But this makes no sense. Now there is no possibility to run subs in other &lt;BR /&gt;
dvbs with inparameters. This must be faulty behaivour.. Or is there another &lt;BR /&gt;
way to call a function in another dvb with input parameters? (And dont say &lt;BR /&gt;
sending it as commandline because thats is reallly not a good way..) I mean &lt;BR /&gt;
if you can evaluate a function like msgbox with input parameters, why cant &lt;BR /&gt;
you evaluate another function.. ?&lt;BR /&gt;
&lt;BR /&gt;
/Rikard&lt;/REDEM&gt;&lt;/OR&gt;</description>
      <pubDate>Wed, 28 Jun 2006 21:47:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/vba-eval-broken/m-p/1689723#M33246</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-06-28T21:47:43Z</dc:date>
    </item>
    <item>
      <title>Re: vba eval broken?.</title>
      <link>https://forums.autodesk.com/t5/vba-forum/vba-eval-broken/m-p/1689724#M33247</link>
      <description>didn't work for me in 2005</description>
      <pubDate>Thu, 06 Jul 2006 15:39:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/vba-eval-broken/m-p/1689724#M33247</guid>
      <dc:creator>arcticad</dc:creator>
      <dc:date>2006-07-06T15:39:53Z</dc:date>
    </item>
    <item>
      <title>Re: vba eval broken?.</title>
      <link>https://forums.autodesk.com/t5/vba-forum/vba-eval-broken/m-p/1689725#M33248</link>
      <description>Did I just get lucky?&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
----&lt;BR /&gt;
Ed&lt;BR /&gt;
----</description>
      <pubDate>Thu, 06 Jul 2006 19:36:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/vba-eval-broken/m-p/1689725#M33248</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-07-06T19:36:39Z</dc:date>
    </item>
  </channel>
</rss>

