Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to check that a OLE server was correctly instanciate
Message
 
 
À
29/02/2000 13:53:57
Information générale
Forum:
Visual Basic
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00338617
Message ID:
00339612
Vues:
25
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform