TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Administrator
Tech Writer
2.2k
1.5m
problem trying to create a simple class
Mar 27 2003 9:52 AM
Hi all, I'm getting an error message when I try to run the following class. The error message is: "object reference not set to an instance of an object." This error message is referring to variable "a" below when I try to increment it in the "for" statement "a++". Any suggestions would be very much appreciated. Thanks. Mike using System; using System.IO; namespace HEIAN_TRANSFER { ///
/// Summary description for HeianFiles. /// This returns an array of file names in a specific folder. ///
public class HeianFiles { private string[] pathNames; private string[] theFile; public string[] fileNames; public HeianFiles() { } public string[] GetFiles(string thePath) { int spot; pathNames = Directory.GetFiles(thePath); int nbrFiles = pathNames.Length; for(int a=0;a
Reply
Answers (
4
)
List of available classes
Positioning custom web control