Click here to Skip to main content
15,921,959 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: disable row Pin
nlarson116-Aug-07 10:50
nlarson116-Aug-07 10:50 
AnswerRe: disable row Pin
'Drew6-Aug-07 12:12
'Drew6-Aug-07 12:12 
QuestionDataTable, DataSet, DataGrid. I need to find out when one of these adds a row. Which one do I use? Pin
Cory Kimble6-Aug-07 7:33
Cory Kimble6-Aug-07 7:33 
AnswerRe: DataTable, DataSet, DataGrid. I need to find out when one of these adds a row. Which one do I use? Pin
Luc Pattyn6-Aug-07 7:45
sitebuilderLuc Pattyn6-Aug-07 7:45 
AnswerReply for Datagride Refresh Pin
Senthil S7-Aug-07 2:42
Senthil S7-Aug-07 2:42 
QuestionArrayList from a StreamReader issue [modified] Pin
Payrok6-Aug-07 7:14
Payrok6-Aug-07 7:14 
AnswerRe: ArrayList from a StreamReader issue Pin
Dave Kreskowiak6-Aug-07 7:47
mveDave Kreskowiak6-Aug-07 7:47 
GeneralRe: ArrayList from a StreamReader issue [modified] Pin
Payrok6-Aug-07 7:59
Payrok6-Aug-07 7:59 
Thanks for the help.

<br />
Dim data As String = m_istream.ReadToEnd()<br />


'data' is null after the the call to ReadToEnd(),even though I can see data returned from this function in the debugger. This is the problem that has been plaguing me. It seems that I can't assign anything off the stream to a variable. I'm at a loss as to why.

The 'al' is an ArrayList, a very useful enumerated array type, the Adapter() method takes an IList object(string array in this case.) and converts it to an ArrayList. Just FYI.

Jason




-- modified at 14:06 Monday 6th August, 2007

for clarity, here is the exact code block:
<br />
Try<br />
	m_istream = New StreamReader(m_ipath)<br />
	m_al = m_al.Adapter(m_istream.ReadToEnd().Split("~"c))<br />
	Return True<br />
Catch ex As Exception<br />
	Return False<br />
	Throw New Exception("Error Reading File! See InnerExcpetion.", ex)<br />
Finally<br />
	m_istream.Close()<br />
End Try<br />


"In the middle of difficulty lies opportunity." Albert Einstein

GeneralRe: ArrayList from a StreamReader issue Pin
Dave Kreskowiak6-Aug-07 8:08
mveDave Kreskowiak6-Aug-07 8:08 
GeneralRe: ArrayList from a StreamReader issue Pin
Payrok6-Aug-07 8:11
Payrok6-Aug-07 8:11 
GeneralRe: ArrayList from a StreamReader issue Pin
Payrok6-Aug-07 8:16
Payrok6-Aug-07 8:16 
GeneralRe: ArrayList from a StreamReader issue Pin
Dave Kreskowiak6-Aug-07 8:49
mveDave Kreskowiak6-Aug-07 8:49 
AnswerRe: ArrayList from a StreamReader issue Pin
Payrok6-Aug-07 8:58
Payrok6-Aug-07 8:58 
GeneralRe: ArrayList from a StreamReader issue Pin
Dave Kreskowiak6-Aug-07 9:14
mveDave Kreskowiak6-Aug-07 9:14 
QuestionCannot generate SSPI context error Pin
xbiplav6-Aug-07 5:20
xbiplav6-Aug-07 5:20 
AnswerRe: Cannot generate SSPI context error Pin
Dave Kreskowiak6-Aug-07 8:09
mveDave Kreskowiak6-Aug-07 8:09 
GeneralRe: Cannot generate SSPI context error Pin
xbiplav6-Aug-07 18:11
xbiplav6-Aug-07 18:11 
GeneralRe: Cannot generate SSPI context error Pin
Dave Kreskowiak7-Aug-07 11:37
mveDave Kreskowiak7-Aug-07 11:37 
QuestionVB.Net: Programmatically previewing any system supported document type Pin
Mbire6-Aug-07 3:43
Mbire6-Aug-07 3:43 
AnswerRe: VB.Net: Programmatically previewing any system supported document type Pin
Luc Pattyn6-Aug-07 4:04
sitebuilderLuc Pattyn6-Aug-07 4:04 
GeneralRe: VB.Net: Programmatically previewing any system supported document type Pin
Mbire7-Aug-07 22:03
Mbire7-Aug-07 22:03 
GeneralRe: VB.Net: Programmatically previewing any system supported document type Pin
Luc Pattyn7-Aug-07 23:04
sitebuilderLuc Pattyn7-Aug-07 23:04 
AnswerRe: VB.Net: Programmatically previewing any system supported document type Pin
Dave Kreskowiak6-Aug-07 4:18
mveDave Kreskowiak6-Aug-07 4:18 
GeneralRe: VB.Net: Programmatically previewing any system supported document type Pin
Mbire7-Aug-07 22:32
Mbire7-Aug-07 22:32 
GeneralRe: VB.Net: Programmatically previewing any system supported document type Pin
Dave Kreskowiak8-Aug-07 13:32
mveDave Kreskowiak8-Aug-07 13:32 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.