You need to switch lines 5 and 6; on the last iteration FileName will be null.
creating a matrix
Collapse
X
-
Originally posted by SammyBYou need to switch lines 5 and 6; on the last iteration FileName will be null.
Line2 = source2.Substri ng(n, 1)
error: object reference not set to an instance of an object.Comment
-
Originally posted by dr3amxstarSorry for keep asking! I swop and its back to this problem
Line2 = source2.Substri ng(n, 1)
error: object reference not set to an instance of an object.- Check the file
- What is in source2
- What is len(source2)
- What is n
Comment
-
Code:Dim FileName As String Dim Files As New List(Of String) FileName = Dir("D:\project1\ANN\*Chain*") Do While FileName <> "" Files.Add(FileName) ListBox1.Items.Add(Files) FileName = Dir() Loop
[Collection] - 13 of this
Is this the output i should get from the few lines?Comment
-
oops.. I forgot to say a very big thank you for all the help given!!! Special Thanks to Killer42 and SammyB ! :DComment
-
Comment