Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
GetDbcNameFromConnectString(), qualified?
Message
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
00847236
Message ID:
00848295
Vues:
12
Neil,

>The compiler does not like my call to GetDbcNameFromConnectString(). The reported error is:
>static member "mmAppBase.DatabaseMgr.GetDbcNameFromConnectString(ConnStr);"
>cannot be referenced with an instance reference; qualify it with a type name instead

As Paul pointed out you were trying to call a static method on an instance of the class. Static methods belong to the class, not to an instance of the class, so you must reference the class itself to call the method.

Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform