<?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 isNothing in VBA for AutoCAD R14 in VBA Forum</title>
    <link>https://forums.autodesk.com/t5/vba-forum/isnothing-in-vba-for-autocad-r14/m-p/304425#M98484</link>
    <description>Hello,&lt;BR /&gt;
&lt;BR /&gt;
I want to test an Objectvariable in AutoCAD whether it is Nothing or it &lt;BR /&gt;
contains data.&lt;BR /&gt;
&lt;BR /&gt;
But my VBA in AutoCAD R14 doesn't know the method "isNothing()".&lt;BR /&gt;
&lt;BR /&gt;
Is there any other possibility to check this out?&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
Stephan Bulheller</description>
    <pubDate>Thu, 04 Nov 1999 13:40:30 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>1999-11-04T13:40:30Z</dc:date>
    <item>
      <title>isNothing in VBA for AutoCAD R14</title>
      <link>https://forums.autodesk.com/t5/vba-forum/isnothing-in-vba-for-autocad-r14/m-p/304425#M98484</link>
      <description>Hello,&lt;BR /&gt;
&lt;BR /&gt;
I want to test an Objectvariable in AutoCAD whether it is Nothing or it &lt;BR /&gt;
contains data.&lt;BR /&gt;
&lt;BR /&gt;
But my VBA in AutoCAD R14 doesn't know the method "isNothing()".&lt;BR /&gt;
&lt;BR /&gt;
Is there any other possibility to check this out?&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
Stephan Bulheller</description>
      <pubDate>Thu, 04 Nov 1999 13:40:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/isnothing-in-vba-for-autocad-r14/m-p/304425#M98484</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>1999-11-04T13:40:30Z</dc:date>
    </item>
    <item>
      <title>Re: isNothing in VBA for AutoCAD R14</title>
      <link>https://forums.autodesk.com/t5/vba-forum/isnothing-in-vba-for-autocad-r14/m-p/304426#M98485</link>
      <description>Hello,&lt;BR /&gt;
&lt;BR /&gt;
I want to test an Objectvariable in AutoCAD whether it is Nothing or it &lt;BR /&gt;
contains data.&lt;BR /&gt;
&lt;BR /&gt;
But my VBA in AutoCAD R14 doesn't know the method "isNothing()".&lt;BR /&gt;
&lt;BR /&gt;
Is there any other possibility to check this out?&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
Stephan Bulheller</description>
      <pubDate>Thu, 04 Nov 1999 13:40:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/isnothing-in-vba-for-autocad-r14/m-p/304426#M98485</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>1999-11-04T13:40:30Z</dc:date>
    </item>
    <item>
      <title>Re: isNothing in VBA for AutoCAD R14</title>
      <link>https://forums.autodesk.com/t5/vba-forum/isnothing-in-vba-for-autocad-r14/m-p/304427#M98486</link>
      <description>It's two words:&lt;BR /&gt;
&lt;BR /&gt;
    If Something Is Nothing Then&lt;BR /&gt;
    else&lt;BR /&gt;
    endif&lt;BR /&gt;
&lt;BR /&gt;
Mark Holder&lt;BR /&gt;
&lt;BR /&gt;
Stephan Bulheller wrote:&lt;BR /&gt;
&lt;BR /&gt;
&amp;gt; Hello,&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; I want to test an Objectvariable in AutoCAD whether it is Nothing or it&lt;BR /&gt;
&amp;gt; contains data.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; But my VBA in AutoCAD R14 doesn't know the method "isNothing()".&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Is there any other possibility to check this out?&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Thanks,&lt;BR /&gt;
&amp;gt; Stephan Bulheller</description>
      <pubDate>Thu, 04 Nov 1999 14:27:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/isnothing-in-vba-for-autocad-r14/m-p/304427#M98486</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>1999-11-04T14:27:31Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/isnothing-in-vba-for-autocad-r14/m-p/304428#M98487</link>
      <description>Stephan and Mark,&lt;BR /&gt;
&lt;BR /&gt;
A little extra, and correct me if I'm wrong:&lt;BR /&gt;
&lt;BR /&gt;
If Object Is Nothing Then&lt;BR /&gt;
    'the object has NOT been created using Set Object = Whatever, this will&lt;BR /&gt;
return true.  It does not indicate that the object has nothing in it.&lt;BR /&gt;
    'if the object has been created and has nothing in it, this will be&lt;BR /&gt;
false, because it has been created with Set.&lt;BR /&gt;
    'if the object contains things this will also be false, not because it&lt;BR /&gt;
contains things, but because it has been created.&lt;BR /&gt;
End If&lt;BR /&gt;
&lt;BR /&gt;
If Object.Count = 0 Then&lt;BR /&gt;
    'the object has been created using Set Object = Whatever, and it actually&lt;BR /&gt;
contains nothing.  This statement will&lt;BR /&gt;
    'generate an error if the object has not been created with Set.&lt;BR /&gt;
End If&lt;BR /&gt;
&lt;BR /&gt;
-Danny Polkinhorn&lt;BR /&gt;
SRSS &amp;amp; Associates, Inc.&lt;BR /&gt;
Atlanta, GA&lt;BR /&gt;
&lt;BR /&gt;
Mark Holder wrote:&lt;BR /&gt;
&lt;BR /&gt;
&amp;gt; It's two words:&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;     If Something Is Nothing Then&lt;BR /&gt;
&amp;gt;     else&lt;BR /&gt;
&amp;gt;     endif&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Mark Holder&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Stephan Bulheller wrote:&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; Hello,&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; I want to test an Objectvariable in AutoCAD whether it is Nothing or it&lt;BR /&gt;
&amp;gt; &amp;gt; contains data.&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; But my VBA in AutoCAD R14 doesn't know the method "isNothing()".&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; Is there any other possibility to check this out?&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; Thanks,&lt;BR /&gt;
&amp;gt; &amp;gt; Stephan Bulheller</description>
      <pubDate>Thu, 04 Nov 1999 18:54:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/isnothing-in-vba-for-autocad-r14/m-p/304428#M98487</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>1999-11-04T18:54:09Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/isnothing-in-vba-for-autocad-r14/m-p/304429#M98488</link>
      <description>Danny,&lt;BR /&gt;
&lt;BR /&gt;
I think your comments are mostly true, but you seem to be confusing the generic&lt;BR /&gt;
object - type variable with a collection - type object. In general, objects don't&lt;BR /&gt;
have a Count property. As you say, a collection object can be Not Nothing (Set&lt;BR /&gt;
myCol = New Collection), and still have no items in it (myCollection.Count=0).&lt;BR /&gt;
Any object defined by a class module, even if it has been "instantiated" by a Set&lt;BR /&gt;
statement, will raise an error on myObject.Count unless the class is designed to&lt;BR /&gt;
have the Count property.&lt;BR /&gt;
&lt;BR /&gt;
Mark Holder&lt;BR /&gt;
&lt;BR /&gt;
Danny Polkinhorn wrote:&lt;BR /&gt;
&lt;BR /&gt;
&amp;gt; Stephan and Mark,&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; A little extra, and correct me if I'm wrong:&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; If Object Is Nothing Then&lt;BR /&gt;
&amp;gt;     'the object has NOT been created using Set Object = Whatever, this will&lt;BR /&gt;
&amp;gt; return true.  It does not indicate that the object has nothing in it.&lt;BR /&gt;
&amp;gt;     'if the object has been created and has nothing in it, this will be&lt;BR /&gt;
&amp;gt; false, because it has been created with Set.&lt;BR /&gt;
&amp;gt;     'if the object contains things this will also be false, not because it&lt;BR /&gt;
&amp;gt; contains things, but because it has been created.&lt;BR /&gt;
&amp;gt; End If&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; If Object.Count = 0 Then&lt;BR /&gt;
&amp;gt;     'the object has been created using Set Object = Whatever, and it actually&lt;BR /&gt;
&amp;gt; contains nothing.  This statement will&lt;BR /&gt;
&amp;gt;     'generate an error if the object has not been created with Set.&lt;BR /&gt;
&amp;gt; End If&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; -Danny Polkinhorn&lt;BR /&gt;
&amp;gt; SRSS &amp;amp; Associates, Inc.&lt;BR /&gt;
&amp;gt; Atlanta, Ga</description>
      <pubDate>Thu, 04 Nov 1999 21:15:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/isnothing-in-vba-for-autocad-r14/m-p/304429#M98488</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>1999-11-04T21:15:14Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/isnothing-in-vba-for-autocad-r14/m-p/304430#M98489</link>
      <description>From the Visual Basic help Files of VB Design&lt;BR /&gt;
http://vbdesign.hypermart.net/cadpages/&lt;BR /&gt;
&lt;BR /&gt;
Hi all,&lt;BR /&gt;
Wow, that's a lot about Nothing! If I may . .&lt;BR /&gt;
&lt;BR /&gt;
The Nothing Keyword is used only with Object variables to determine if a&lt;BR /&gt;
variable has a valid object reference&lt;BR /&gt;
&lt;BR /&gt;
If objLlama Is Not Nothing Then&lt;BR /&gt;
&lt;BR /&gt;
or you can use it to destroy a current object reference&lt;BR /&gt;
&lt;BR /&gt;
Set objLlama = Nothing&lt;BR /&gt;
&lt;BR /&gt;
You see when you first declare an object variable it contains a special&lt;BR /&gt;
value - Nothing&lt;BR /&gt;
&lt;BR /&gt;
So when an Object is set to something, its Not Nothing anymore&lt;BR /&gt;
&lt;BR /&gt;
hehe&lt;BR /&gt;
Randall Rath&lt;BR /&gt;
VB Design</description>
      <pubDate>Thu, 04 Nov 1999 23:24:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/isnothing-in-vba-for-autocad-r14/m-p/304430#M98489</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>1999-11-04T23:24:17Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/isnothing-in-vba-for-autocad-r14/m-p/304431#M98490</link>
      <description>Thanks to all. It works... &lt;BR /&gt;
&lt;BR /&gt;
Nice feature you must take "Is Nothing" instead of "IsNothing".&lt;BR /&gt;
Because in the Online-Documentation of VBA you only find a hint to &lt;BR /&gt;
"ISNothing".&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
Stephan Bulheller</description>
      <pubDate>Fri, 05 Nov 1999 09:51:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/isnothing-in-vba-for-autocad-r14/m-p/304431#M98490</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>1999-11-05T09:51:59Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/isnothing-in-vba-for-autocad-r14/m-p/304432#M98491</link>
      <description>Mark,&lt;BR /&gt;
&lt;BR /&gt;
I stand corrected.  I think I was making an assumption from Stephan's post where he&lt;BR /&gt;
wanted to know if his object "contained data."  I assumed he meant a collection.&lt;BR /&gt;
&lt;BR /&gt;
-Danny&lt;BR /&gt;
&lt;BR /&gt;
Mark Holder wrote:&lt;BR /&gt;
&lt;BR /&gt;
&amp;gt; Danny,&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; I think your comments are mostly true, but you seem to be confusing the generic&lt;BR /&gt;
&amp;gt; object - type variable with a collection - type object. In general, objects don't&lt;BR /&gt;
&amp;gt; have a Count property. As you say, a collection object can be Not Nothing (Set&lt;BR /&gt;
&amp;gt; myCol = New Collection), and still have no items in it (myCollection.Count=0).&lt;BR /&gt;
&amp;gt; Any object defined by a class module, even if it has been "instantiated" by a Set&lt;BR /&gt;
&amp;gt; statement, will raise an error on myObject.Count unless the class is designed to&lt;BR /&gt;
&amp;gt; have the Count property.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Mark Holder&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Danny Polkinhorn wrote:&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; Stephan and Mark,&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; A little extra, and correct me if I'm wrong:&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; If Object Is Nothing Then&lt;BR /&gt;
&amp;gt; &amp;gt;     'the object has NOT been created using Set Object = Whatever, this will&lt;BR /&gt;
&amp;gt; &amp;gt; return true.  It does not indicate that the object has nothing in it.&lt;BR /&gt;
&amp;gt; &amp;gt;     'if the object has been created and has nothing in it, this will be&lt;BR /&gt;
&amp;gt; &amp;gt; false, because it has been created with Set.&lt;BR /&gt;
&amp;gt; &amp;gt;     'if the object contains things this will also be false, not because it&lt;BR /&gt;
&amp;gt; &amp;gt; contains things, but because it has been created.&lt;BR /&gt;
&amp;gt; &amp;gt; End If&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; If Object.Count = 0 Then&lt;BR /&gt;
&amp;gt; &amp;gt;     'the object has been created using Set Object = Whatever, and it actually&lt;BR /&gt;
&amp;gt; &amp;gt; contains nothing.  This statement will&lt;BR /&gt;
&amp;gt; &amp;gt;     'generate an error if the object has not been created with Set.&lt;BR /&gt;
&amp;gt; &amp;gt; End If&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; -Danny Polkinhorn&lt;BR /&gt;
&amp;gt; &amp;gt; SRSS &amp;amp; Associates, Inc.&lt;BR /&gt;
&amp;gt; &amp;gt; Atlanta, Ga</description>
      <pubDate>Mon, 08 Nov 1999 21:31:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/isnothing-in-vba-for-autocad-r14/m-p/304432#M98491</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>1999-11-08T21:31:59Z</dc:date>
    </item>
  </channel>
</rss>

