Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Instantiating variables
Message
Information générale
Forum:
Visual Basic
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00406736
Message ID:
00406802
Vues:
25
>>I have no consistency in instantaiting objects, but maybe I should. Are there any advantages to using either of these:
>>
>>Dim oConn As Connection, oRS As Recordset
>>or
>>Dim oConn As ADODB.Connection, oRS As ADODB.Recordset
>>
>>And
>>
>>Dim oBizObj As New myClass
>
> Never use the above, use the code below, there are almost no good reasons to use the above:
>
>>or
>>Dim oBizObj As myClass
>>Set oBizObj = New myClass


Thanks. Never heard that before, can you explain?
George
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform