Hello Andrew,
The error message already showed where the problem is.
In the code, the pmaDataHash1 is a static member of pmaDataHash class, it
must be refer to by pmaDataHash's static function and it must be associated
with this type, not an instance of this type.
In your code listed out, I can not find the place you refer to pmaDataHash1
data member, but from the error message, you maybe associate it with an
instance.
Hope this helps.
Best regards,
Yanhong Huang
Microsoft Online Partner Support
Get Secure! ¨C
www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
!Content-Class: urn:content-classes:message
!From: "andrew" <an************ @boeing.com>
!Sender: "andrew" <an************ @boeing.com>
!Subject: instance reference; qualify it with a type name instead
!Date: Mon, 14 Jul 2003 11:31:10 -0700
!Lines: 31
!Message-ID: <03************ *************** *@phx.gbl>
!MIME-Version: 1.0
!Content-Type: text/plain;
! charset="iso-8859-1"
!Content-Transfer-Encoding: 7bit
!X-Newsreader: Microsoft CDO for Windows 2000
!X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
!Thread-Index: AcNKNhkxgy1v8Bo BTHKuIYtvBPL1jg ==
!Newsgroups: microsoft.publi c.dotnet.langua ges.csharp
!Path: cpmsftngxa06.ph x.gbl
!Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.langua ges.csharp:1689 93
!NNTP-Posting-Host: TK2MSFTNGXA09 10.40.1.161
!X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.csharp
!
!C:\Documents and Settings\watts\ My Documents\Visua l Studio
!Projects\boein g\showPMACfg\vu ePMAcfg\vuePMAc fg.cs(88):
!Static member 'vuePMAcfg.pmaD ataHash.pmaData Hash1' cannot
!be accessed with an instance reference; qualify it with a
!type name instead
!
!OK I have this class And the hash and the function shows
!up in type ahead. I tried declaring it and later accessing
!it like this:
!
!private vuePMAcfg.pmaDa taHash pmaDataObj;
!...
!pmaDataShareAr ray.Add(pmaData Obj.pmaDataHash 1);
!
!But I get the error above ... if I try
!private vuePMAcfg.pmaDa taHash pmaDataObj = new
!vuePMAcfg.pmaD ataHash(); ... I get the same error.
!
!What does the error mean and how do I get to the items &
!function ??? Thanks
!
!public class pmaDataHash
!{
! public pmaDataHash()
! {
! }
! public static Hashtable pmaDataHash1 = new
!Hashtable();
!public string GetFolderByleve l(string filePath,int level)
!}
!
!