R
rbutch
guys, i need a little help with this.
this is working (well sort of)
i get the info, but it's not moving to a new line as it iterates thru the array
and all of the fields are like ONE HUGE LONG string
'declare an array
Dim filenames() As String
filenames = Directory.GetFiles("C:\Re_Class")
Dim i, o As Integer
Dim info As String
For i = 0 To filenames.Length - 1
'i do a substring to do away with the pathname
info += (filenames(i).Substring(12)) & ControlChars.CrLf
Next i
lstOne.Items.Add(info.ToString)
im then adding it to a list box. if i use a dropdown box the results are the same
this is a web app (asp.net/w/vb.net), just pulling file names from the root directory.
so, im getting info, i just need to have it start a new line on each iteration
thanks again
rik
**********************************************************************
Sent via Fuzzy Software @ http://www.fuzzysoftware.com/
Comprehensive, categorised, searchable collection of links to ASP & ASP.NET resources...
this is working (well sort of)
i get the info, but it's not moving to a new line as it iterates thru the array
and all of the fields are like ONE HUGE LONG string
'declare an array
Dim filenames() As String
filenames = Directory.GetFiles("C:\Re_Class")
Dim i, o As Integer
Dim info As String
For i = 0 To filenames.Length - 1
'i do a substring to do away with the pathname
info += (filenames(i).Substring(12)) & ControlChars.CrLf
Next i
lstOne.Items.Add(info.ToString)
im then adding it to a list box. if i use a dropdown box the results are the same
this is a web app (asp.net/w/vb.net), just pulling file names from the root directory.
so, im getting info, i just need to have it start a new line on each iteration
thanks again
rik
**********************************************************************
Sent via Fuzzy Software @ http://www.fuzzysoftware.com/
Comprehensive, categorised, searchable collection of links to ASP & ASP.NET resources...