<?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: ques re help file examples - don't set objs to nothing? in VBA Forum</title>
    <link>https://forums.autodesk.com/t5/vba-forum/ques-re-help-file-examples-don-t-set-objs-to-nothing/m-p/335631#M87002</link>
    <description>Hi Mark. Tis example is indeed a bit different. When using For Next to iterate a set of objects,&lt;BR /&gt;
the iterator is automatically pointed at the next object in the collection.&lt;BR /&gt;
&lt;BR /&gt;
--&lt;BR /&gt;
&lt;BR /&gt;
Mark Propst wrote in message &lt;D2B09AE2AC87D694B92B73C7C02895FA&gt;...&lt;BR /&gt;
&amp;gt; On the subject of setting object variables to nothing when they're no longer&lt;BR /&gt;
&amp;gt; needed, I have looked at many help file code examples on diff subjects and&lt;BR /&gt;
&amp;gt; not found any that follow that rule.  Is that intentional to teach us&lt;BR /&gt;
&amp;gt; beginners bad programming manners?&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; --&lt;BR /&gt;
&amp;gt; related ques: is this a different case?&lt;BR /&gt;
&amp;gt; Function MirrorObjSet(objSet, mirrptarr)&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt;     Dim obj1 As AcadEntity&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt;     For Each obj1 In objSet&lt;BR /&gt;
&amp;gt; ...do something with obj1...&lt;BR /&gt;
&amp;gt; next obj1&lt;BR /&gt;
&amp;gt; end sub&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; Here, obj1 was never set using the 'Set' command?/keyword?/function?&lt;BR /&gt;
&amp;gt; so does it still need set to nothing at the end or is this different?&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; Mark@atreng.com&lt;BR /&gt;
&amp;gt; A.T. Renczarski and Co., inc.&lt;BR /&gt;
&amp;gt; p  816.587.0101&lt;BR /&gt;
&amp;gt; f  816.587.5691&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&lt;BR /&gt;
----------------------------------------&lt;BR /&gt;
Sender IP : 208.225.248.186&lt;BR /&gt;
Sender Host : no reverse DNS for this IP&lt;BR /&gt;
&lt;BR /&gt;
Posted by newsgroup Xplorer : http://connect.to/newsgroup | http://www.newsgroupxplorer.com&lt;/D2B09AE2AC87D694B92B73C7C02895FA&gt;</description>
    <pubDate>Sat, 17 Feb 2001 13:02:47 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2001-02-17T13:02:47Z</dc:date>
    <item>
      <title>ques re help file examples - don't set objs to nothing?</title>
      <link>https://forums.autodesk.com/t5/vba-forum/ques-re-help-file-examples-don-t-set-objs-to-nothing/m-p/335630#M87001</link>
      <description>On the subject of setting object variables to nothing when they're no longer&lt;BR /&gt;
needed, I have looked at many help file code examples on diff subjects and&lt;BR /&gt;
not found any that follow that rule.  Is that intentional to teach us&lt;BR /&gt;
beginners bad programming manners?&lt;BR /&gt;
&lt;BR /&gt;
--&lt;BR /&gt;
related ques: is this a different case?&lt;BR /&gt;
Function MirrorObjSet(objSet, mirrptarr)&lt;BR /&gt;
&lt;BR /&gt;
    Dim obj1 As AcadEntity&lt;BR /&gt;
&lt;BR /&gt;
    For Each obj1 In objSet&lt;BR /&gt;
...do something with obj1...&lt;BR /&gt;
next obj1&lt;BR /&gt;
end sub&lt;BR /&gt;
&lt;BR /&gt;
Here, obj1 was never set using the 'Set' command?/keyword?/function?&lt;BR /&gt;
so does it still need set to nothing at the end or is this different?&lt;BR /&gt;
&lt;BR /&gt;
Mark@atreng.com&lt;BR /&gt;
A.T. Renczarski and Co., inc.&lt;BR /&gt;
p  816.587.0101&lt;BR /&gt;
f  816.587.5691</description>
      <pubDate>Sat, 17 Feb 2001 11:03:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/ques-re-help-file-examples-don-t-set-objs-to-nothing/m-p/335630#M87001</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2001-02-17T11:03:00Z</dc:date>
    </item>
    <item>
      <title>Re: ques re help file examples - don't set objs to nothing?</title>
      <link>https://forums.autodesk.com/t5/vba-forum/ques-re-help-file-examples-don-t-set-objs-to-nothing/m-p/335631#M87002</link>
      <description>Hi Mark. Tis example is indeed a bit different. When using For Next to iterate a set of objects,&lt;BR /&gt;
the iterator is automatically pointed at the next object in the collection.&lt;BR /&gt;
&lt;BR /&gt;
--&lt;BR /&gt;
&lt;BR /&gt;
Mark Propst wrote in message &lt;D2B09AE2AC87D694B92B73C7C02895FA&gt;...&lt;BR /&gt;
&amp;gt; On the subject of setting object variables to nothing when they're no longer&lt;BR /&gt;
&amp;gt; needed, I have looked at many help file code examples on diff subjects and&lt;BR /&gt;
&amp;gt; not found any that follow that rule.  Is that intentional to teach us&lt;BR /&gt;
&amp;gt; beginners bad programming manners?&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; --&lt;BR /&gt;
&amp;gt; related ques: is this a different case?&lt;BR /&gt;
&amp;gt; Function MirrorObjSet(objSet, mirrptarr)&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt;     Dim obj1 As AcadEntity&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt;     For Each obj1 In objSet&lt;BR /&gt;
&amp;gt; ...do something with obj1...&lt;BR /&gt;
&amp;gt; next obj1&lt;BR /&gt;
&amp;gt; end sub&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; Here, obj1 was never set using the 'Set' command?/keyword?/function?&lt;BR /&gt;
&amp;gt; so does it still need set to nothing at the end or is this different?&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; Mark@atreng.com&lt;BR /&gt;
&amp;gt; A.T. Renczarski and Co., inc.&lt;BR /&gt;
&amp;gt; p  816.587.0101&lt;BR /&gt;
&amp;gt; f  816.587.5691&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&lt;BR /&gt;
----------------------------------------&lt;BR /&gt;
Sender IP : 208.225.248.186&lt;BR /&gt;
Sender Host : no reverse DNS for this IP&lt;BR /&gt;
&lt;BR /&gt;
Posted by newsgroup Xplorer : http://connect.to/newsgroup | http://www.newsgroupxplorer.com&lt;/D2B09AE2AC87D694B92B73C7C02895FA&gt;</description>
      <pubDate>Sat, 17 Feb 2001 13:02:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/ques-re-help-file-examples-don-t-set-objs-to-nothing/m-p/335631#M87002</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2001-02-17T13:02:47Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/ques-re-help-file-examples-don-t-set-objs-to-nothing/m-p/335632#M87003</link>
      <description>Thanks again for answering,&lt;BR /&gt;
&lt;BR /&gt;
Frank Oquendo &lt;FRANKO&gt; wrote in message&lt;BR /&gt;
news:77E2543248A768B575272429F89F09CE@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; Hi Mark. Tis example is indeed a bit different. When using For Next to&lt;BR /&gt;
iterate a set of objects,&lt;BR /&gt;
&amp;gt; the iterator is automatically pointed at the next object in the&lt;BR /&gt;
collection.&lt;BR /&gt;
&lt;BR /&gt;
 So an iterator even tho it points to an object does not need to be set =&lt;BR /&gt;
nothing&lt;BR /&gt;
after pointing to the last object in the collection it doesn't remain stuck&lt;BR /&gt;
there, it goes out of scope automatically like and int or double etc&lt;BR /&gt;
variable?&lt;BR /&gt;
&lt;BR /&gt;
Mark&lt;/FRANKO&gt;</description>
      <pubDate>Sat, 17 Feb 2001 14:33:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/ques-re-help-file-examples-don-t-set-objs-to-nothing/m-p/335632#M87003</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2001-02-17T14:33:55Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/ques-re-help-file-examples-don-t-set-objs-to-nothing/m-p/335633#M87004</link>
      <description>&amp;gt;  So an iterator even tho ...&lt;BR /&gt;
&lt;BR /&gt;
That's correct. One thing to keep in mind is that you can't ever go&lt;BR /&gt;
wrong by setting an object to Nothing so long as it's an object you&lt;BR /&gt;
created. So even though you don't *have* to clear the iterator object&lt;BR /&gt;
(or any other object for that matter), it's perfectly ok to do so.&lt;BR /&gt;
&lt;BR /&gt;
--&lt;BR /&gt;
http://www.acadx.com&lt;BR /&gt;
"You keep using that word. I do not think it means what you think it&lt;BR /&gt;
means."&lt;BR /&gt;
&lt;BR /&gt;
"Mark Propst" &lt;MARK&gt; wrote in message&lt;BR /&gt;
news:26A8580C2523872D7F80281748C66ED9@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; Thanks again for answering,&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Frank Oquendo &lt;FRANKO&gt; wrote in message&lt;BR /&gt;
&amp;gt; news:77E2543248A768B575272429F89F09CE@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; &amp;gt; Hi Mark. Tis example is indeed a bit different. When using For&lt;BR /&gt;
Next to&lt;BR /&gt;
&amp;gt; iterate a set of objects,&lt;BR /&gt;
&amp;gt; &amp;gt; the iterator is automatically pointed at the next object in the&lt;BR /&gt;
&amp;gt; collection.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;  So an iterator even tho it points to an object does not need to be&lt;BR /&gt;
set =&lt;BR /&gt;
&amp;gt; nothing&lt;BR /&gt;
&amp;gt; after pointing to the last object in the collection it doesn't&lt;BR /&gt;
remain stuck&lt;BR /&gt;
&amp;gt; there, it goes out of scope automatically like and int or double etc&lt;BR /&gt;
&amp;gt; variable?&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Mark&lt;BR /&gt;
&amp;gt;&lt;/FRANKO&gt;&lt;/MARK&gt;</description>
      <pubDate>Sat, 17 Feb 2001 15:21:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/ques-re-help-file-examples-don-t-set-objs-to-nothing/m-p/335633#M87004</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2001-02-17T15:21:00Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/ques-re-help-file-examples-don-t-set-objs-to-nothing/m-p/335634#M87005</link>
      <description>Thank You.</description>
      <pubDate>Sat, 17 Feb 2001 19:18:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/ques-re-help-file-examples-don-t-set-objs-to-nothing/m-p/335634#M87005</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2001-02-17T19:18:38Z</dc:date>
    </item>
  </channel>
</rss>

