<?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: in VBA Forum</title>
    <link>https://forums.autodesk.com/t5/vba-forum/something-strange/m-p/331504#M90051</link>
    <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
No, my code does not have this problem.  As you know arrays cannot be passed&lt;BR /&gt;
by value to a function or sub.  Usually what happens is that once the entity&lt;BR /&gt;
is created the trouble manifests itself, variables change value, the array&lt;BR /&gt;
is no longer there.  I don't know if it makes any difference, but I am using&lt;BR /&gt;
AutoCAD 2000 on Windows NT 4.0 Service pack 5.&lt;BR /&gt;
&lt;BR /&gt;
JR&lt;BR /&gt;
&lt;BR /&gt;
Mark Johnston wrote in message&lt;BR /&gt;
&amp;lt;5C1A2C765359C4EAE68CAF269BB50A1D@in.WebX.SaUCah8kaAW&amp;gt;...&lt;BR /&gt;
&amp;gt;Hi JR,&lt;BR /&gt;
&amp;gt;I've made the mistake of passing a variable into a sub or function byREF&lt;BR /&gt;
&amp;gt;instead of byVAL.&lt;BR /&gt;
&amp;gt;Of course there are reasons for using either option but a variable that is&lt;BR /&gt;
&amp;gt;passed ByRef will change value if manipulated by the program, whereas a&lt;BR /&gt;
&amp;gt;variable that is passed ByVal is just a copy of the current value of&lt;BR /&gt;
&amp;gt;variable. If you don't specify then VB passes ByRef by default.&lt;BR /&gt;
&amp;gt;Could the code you use to create the AutoCAD entity have this kind of&lt;BR /&gt;
&amp;gt;effect?&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;If I'm on the right track then look up the ByRef and ByVal keywords in MSDN&lt;BR /&gt;
&amp;gt;help or online. They explain better than I do.&lt;BR /&gt;
&amp;gt;=Mark&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;JHEATHC&gt; wrote in message&lt;BR /&gt;
&amp;gt;news:FBD3E6CD3F05D934B5E185E54D720026@in.WebX.SaUCah8kaAW...&lt;BR /&gt;
&amp;gt;&amp;gt; I have experienced a rather perplexing problem and I don't quite know&lt;BR /&gt;
what&lt;BR /&gt;
&amp;gt;&amp;gt; to do about it.  Sometimes the values of my VB variables change and/or&lt;BR /&gt;
&amp;gt;&amp;gt; arrays disappear AFTER I create an AutoCAD entity, usually text.  This&lt;BR /&gt;
&amp;gt;&amp;gt; obviously causes my app to crash.&lt;BR /&gt;
&amp;gt;&amp;gt;&lt;BR /&gt;
&amp;gt;&amp;gt; Has anyone else had this problem?  What causes this phenomenon and what&lt;BR /&gt;
&amp;gt;did&lt;BR /&gt;
&amp;gt;&amp;gt; you do about it?&lt;BR /&gt;
&amp;gt;&amp;gt;&lt;BR /&gt;
&amp;gt;&amp;gt; TIA&lt;BR /&gt;
&amp;gt;&amp;gt;&lt;BR /&gt;
&amp;gt;&amp;gt; JR&lt;BR /&gt;
&amp;gt;&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;/JHEATHC&gt;</description>
    <pubDate>Fri, 29 Sep 2000 01:50:40 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2000-09-29T01:50:40Z</dc:date>
    <item>
      <title>Something Strange</title>
      <link>https://forums.autodesk.com/t5/vba-forum/something-strange/m-p/331502#M90049</link>
      <description>I have experienced a rather perplexing problem and I don't quite know what&lt;BR /&gt;
to do about it.  Sometimes the values of my VB variables change and/or&lt;BR /&gt;
arrays disappear AFTER I create an AutoCAD entity, usually text.  This&lt;BR /&gt;
obviously causes my app to crash.&lt;BR /&gt;
&lt;BR /&gt;
Has anyone else had this problem?  What causes this phenomenon and what did&lt;BR /&gt;
you do about it?&lt;BR /&gt;
&lt;BR /&gt;
TIA&lt;BR /&gt;
&lt;BR /&gt;
JR</description>
      <pubDate>Thu, 28 Sep 2000 03:39:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/something-strange/m-p/331502#M90049</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-09-28T03:39:00Z</dc:date>
    </item>
    <item>
      <title>Re: Something Strange</title>
      <link>https://forums.autodesk.com/t5/vba-forum/something-strange/m-p/331503#M90050</link>
      <description>Hi JR,&lt;BR /&gt;
I've made the mistake of passing a variable into a sub or function byREF&lt;BR /&gt;
instead of byVAL.&lt;BR /&gt;
Of course there are reasons for using either option but a variable that is&lt;BR /&gt;
passed ByRef will change value if manipulated by the program, whereas a&lt;BR /&gt;
variable that is passed ByVal is just a copy of the current value of&lt;BR /&gt;
variable. If you don't specify then VB passes ByRef by default.&lt;BR /&gt;
Could the code you use to create the AutoCAD entity have this kind of&lt;BR /&gt;
effect?&lt;BR /&gt;
&lt;BR /&gt;
If I'm on the right track then look up the ByRef and ByVal keywords in MSDN&lt;BR /&gt;
help or online. They explain better than I do.&lt;BR /&gt;
=Mark&lt;BR /&gt;
&lt;BR /&gt;
&lt;JHEATHC&gt; wrote in message&lt;BR /&gt;
news:FBD3E6CD3F05D934B5E185E54D720026@in.WebX.SaUCah8kaAW...&lt;BR /&gt;
&amp;gt; I have experienced a rather perplexing problem and I don't quite know what&lt;BR /&gt;
&amp;gt; to do about it.  Sometimes the values of my VB variables change and/or&lt;BR /&gt;
&amp;gt; arrays disappear AFTER I create an AutoCAD entity, usually text.  This&lt;BR /&gt;
&amp;gt; obviously causes my app to crash.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Has anyone else had this problem?  What causes this phenomenon and what&lt;BR /&gt;
did&lt;BR /&gt;
&amp;gt; you do about it?&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; TIA&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; JR&lt;BR /&gt;
&amp;gt;&lt;/JHEATHC&gt;</description>
      <pubDate>Thu, 28 Sep 2000 19:52:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/something-strange/m-p/331503#M90050</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-09-28T19:52:22Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/something-strange/m-p/331504#M90051</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
No, my code does not have this problem.  As you know arrays cannot be passed&lt;BR /&gt;
by value to a function or sub.  Usually what happens is that once the entity&lt;BR /&gt;
is created the trouble manifests itself, variables change value, the array&lt;BR /&gt;
is no longer there.  I don't know if it makes any difference, but I am using&lt;BR /&gt;
AutoCAD 2000 on Windows NT 4.0 Service pack 5.&lt;BR /&gt;
&lt;BR /&gt;
JR&lt;BR /&gt;
&lt;BR /&gt;
Mark Johnston wrote in message&lt;BR /&gt;
&amp;lt;5C1A2C765359C4EAE68CAF269BB50A1D@in.WebX.SaUCah8kaAW&amp;gt;...&lt;BR /&gt;
&amp;gt;Hi JR,&lt;BR /&gt;
&amp;gt;I've made the mistake of passing a variable into a sub or function byREF&lt;BR /&gt;
&amp;gt;instead of byVAL.&lt;BR /&gt;
&amp;gt;Of course there are reasons for using either option but a variable that is&lt;BR /&gt;
&amp;gt;passed ByRef will change value if manipulated by the program, whereas a&lt;BR /&gt;
&amp;gt;variable that is passed ByVal is just a copy of the current value of&lt;BR /&gt;
&amp;gt;variable. If you don't specify then VB passes ByRef by default.&lt;BR /&gt;
&amp;gt;Could the code you use to create the AutoCAD entity have this kind of&lt;BR /&gt;
&amp;gt;effect?&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;If I'm on the right track then look up the ByRef and ByVal keywords in MSDN&lt;BR /&gt;
&amp;gt;help or online. They explain better than I do.&lt;BR /&gt;
&amp;gt;=Mark&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;JHEATHC&gt; wrote in message&lt;BR /&gt;
&amp;gt;news:FBD3E6CD3F05D934B5E185E54D720026@in.WebX.SaUCah8kaAW...&lt;BR /&gt;
&amp;gt;&amp;gt; I have experienced a rather perplexing problem and I don't quite know&lt;BR /&gt;
what&lt;BR /&gt;
&amp;gt;&amp;gt; to do about it.  Sometimes the values of my VB variables change and/or&lt;BR /&gt;
&amp;gt;&amp;gt; arrays disappear AFTER I create an AutoCAD entity, usually text.  This&lt;BR /&gt;
&amp;gt;&amp;gt; obviously causes my app to crash.&lt;BR /&gt;
&amp;gt;&amp;gt;&lt;BR /&gt;
&amp;gt;&amp;gt; Has anyone else had this problem?  What causes this phenomenon and what&lt;BR /&gt;
&amp;gt;did&lt;BR /&gt;
&amp;gt;&amp;gt; you do about it?&lt;BR /&gt;
&amp;gt;&amp;gt;&lt;BR /&gt;
&amp;gt;&amp;gt; TIA&lt;BR /&gt;
&amp;gt;&amp;gt;&lt;BR /&gt;
&amp;gt;&amp;gt; JR&lt;BR /&gt;
&amp;gt;&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;/JHEATHC&gt;</description>
      <pubDate>Fri, 29 Sep 2000 01:50:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/something-strange/m-p/331504#M90051</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-09-29T01:50:40Z</dc:date>
    </item>
  </channel>
</rss>

