mike55 Posted January 27, 2006 Posted January 27, 2006 In the 2003 code I have the following: oReader = oFile.OpenText(myFile) where oReader is a System.IO.StreamReader and myFile us a string refering to a temporary file location. With the 2005 environment, I am getting the following error: "Access of shared member, constant member, enum member or nested type through an instance; qualifying expression will not be evaluated". Any suggestions? Mike55. Quote A Client refers to the person who incurs the development cost. A Customer refers to the person that pays to use the product. ------ My software never has bugs. It just develops random features. (Mosabama vbforums.com)
mskeel Posted January 27, 2006 Posted January 27, 2006 I've gotten that a few times as well while porting my code. If I remember correctly, it's a warning that you are calling a static/shared method from an object you've instantiated. Is OpenText a static method? If oFile is a System.IO.File try File.OpenText(myFile). Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.