Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to check that a OLE server was correctly instanciate
Message
 
 
To
29/02/2000 13:53:57
General information
Forum:
Visual Basic
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00338617
Message ID:
00339612
Views:
24
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.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Previous
Reply
Map
View

Click here to load this message in the networking platform