Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

 
 
Thread Tools Display Modes
Prev Previous Post in Thread   Next Post in Thread Next
Old Oct 23rd, 2006, 8:00 AM   #1
Ithaqua
Newbie
 
Join Date: Oct 2005
Location: The othe side
Posts: 19
Rep Power: 0 Ithaqua is on a distinguished road
Class problem

I have a problem in that I have created this class below it is designed to allow the user to set the full path to a file and store that data in the variable fullPath, but when I try to retreive that data in the fullPath variable and try to use it in the main program

Quote:
Public Class FileDetails

Private fullPath as string ' Holds the full path and filename of the file

ReadOnly Property FullPathAndFilename() As String
Get
Return _fullPath
End Get
End Property

End Class
The class is called in the main program like this.
Quote:
' Create a new instance of the class that holds files details
Dim MyFileDetails As FileDetails
MyFileDetails = New FileDetails

' Read in the data from the file
Dim objReader As StreamReader = New StreamReader(MyFileDetails.FullPathAndFilename)
Strangley if I try and put the data in the fullPath varible into a message box in the main program it shows the there is data there.

Can any one help?
__________________
Cheers
Ithaqua
Ithaqua is offline   Reply With Quote
 

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
rs232 class problem Brent C++ 3 Jun 29th, 2006 5:38 PM
1 class, 1 problem = 1 big headache Eric the Red Java 7 May 23rd, 2006 11:49 PM
Problem with class constructor paeck C++ 8 Feb 7th, 2006 12:53 PM
problem with user defined class mixed with functions willj729 C++ 4 Oct 9th, 2005 3:26 PM
MFC/OpenGL: problem with 'Document' class brenda C++ 11 May 23rd, 2005 8:10 PM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 2:45 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC