VB/VBA object type

VB/VBA object type

Anonymous
Not applicable
301 Views
1 Reply
Message 1 of 2

VB/VBA object type

Anonymous
Not applicable
Is there a way of determining an object type variable asignment?
say:

Dim MyObject as object

Set MyObject = CreateObject(, "AutoCAD.Application")

Then

I would like to check if is still a valid object
VarType(MyObject) will return vbObject (==9) even if I did not set an object
to it
and I did not want to Create avery time

I need someting like (in C)

Thanks
0 Likes
302 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable
SSaarian wrote:

> I need someting like (in C)

For object variables:

If MyObject Is Nothing

--
This space intentionally left blank.
0 Likes