Information générale
Catégorie:
The Mere Mortals .NET Framework
Thank you. A lot different than vfp. <g>
Neil
>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,
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement