I'm pretty sure you have to use the On Error in this case; VB is nearly as forgiving as VFP. But you can do the following:
on error resume next
set myobject = createobject('myproject.myclass')
if IsObject(myobject) then
* process normally
else
* an error occurred
end if
Larry Miller
MCSD
LWMiller3@verizon.netAccumulate learning by study, understand what you learn by questioning. -- Mingjiao