Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

isObject function

Status
Not open for further replies.

920506

Programmer
Jun 13, 2003
201
US
Hi everyone,
I tried to check before set an object is nothing so I did the following:
If Not isNULL(Executor) then
Executor.Close 'error here
set Executor=nothing
End If

or
If Not isObject(Executor) then
Executor.Close 'error here
set Executor=nothing
End If
But it always give me the error, object required, but I
checked already, did I? and it keeps saying object required?
 
try this:

if isObject(Executor) then
Executor.Close
set Executor= nothing
end if

-DNG
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top