Message 1 of 5
ques re help file examples - don't set objs to nothing?
Not applicable
02-17-2001
03:03 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
On the subject of setting object variables to nothing when they're no longer
needed, I have looked at many help file code examples on diff subjects and
not found any that follow that rule. Is that intentional to teach us
beginners bad programming manners?
--
related ques: is this a different case?
Function MirrorObjSet(objSet, mirrptarr)
Dim obj1 As AcadEntity
For Each obj1 In objSet
...do something with obj1...
next obj1
end sub
Here, obj1 was never set using the 'Set' command?/keyword?/function?
so does it still need set to nothing at the end or is this different?
[email protected]
A.T. Renczarski and Co., inc.
p 816.587.0101
f 816.587.5691
needed, I have looked at many help file code examples on diff subjects and
not found any that follow that rule. Is that intentional to teach us
beginners bad programming manners?
--
related ques: is this a different case?
Function MirrorObjSet(objSet, mirrptarr)
Dim obj1 As AcadEntity
For Each obj1 In objSet
...do something with obj1...
next obj1
end sub
Here, obj1 was never set using the 'Set' command?/keyword?/function?
so does it still need set to nothing at the end or is this different?
[email protected]
A.T. Renczarski and Co., inc.
p 816.587.0101
f 816.587.5691