View Single Post
  #4  
Old 19-11-2003, 11:28
Alex's Avatar
Alex Alex is offline
Administrator
 
Join Date: Nov 2002
Posts: 1,940
Blog Entries: 4
Default

Your L IS an object variable which holds a value Nothing. So VBA produces the correct result. Compare this:

Dim v As Variant

v = 0
IsObject(v) -> False
Set v = New Collection
IsObject(v) -> True
Set v = Nothing
IsObject(v) ->True
v = 5
IsObject(v) -> False

In other words, Nothing is a valid value for any object variable and it is considered as Object type. So, no error here.

The LayerRange.Combine method of PhotoPaint is another story
Reply With Quote