DR00ME Posted March 23, 2004 Posted March 23, 2004 Dim FilterListBox As ListBox SR = FileHandle.OpenText("Calibration.ini") HSL_String = SR.ReadToEnd SR.Close() HSL_Array = HSL_String.Split(";"c) For i = 0 To HSL_Array.Length - 1 ArraySplit = Convert.ToString(HSL_Array(i)) 'MsgBox(ArraySplit) FilterListBox.Items.Add(ArraySplit) 'I get error in here, why ? Next i "Object reference is not set to an instance of object" Quote "Everything should be made as simple as possible, but not simpler." "It's not that I'm so smart , it's just that I stay with problems longer ." - Albert Einstein
Leaders dynamic_sysop Posted March 23, 2004 Leaders Posted March 23, 2004 you need to declare the listbox as New Dim FilterListBox As ListBox Quote
DR00ME Posted March 23, 2004 Author Posted March 23, 2004 Yeah, once again I'm bad with the 'new' things.... p.s. I was just wondering if there is a thing you don't actually know in vb.net :D Quote "Everything should be made as simple as possible, but not simpler." "It's not that I'm so smart , it's just that I stay with problems longer ." - Albert Einstein
Leaders dynamic_sysop Posted March 23, 2004 Leaders Posted March 23, 2004 lol , there's loads i don't know in .net , but if i don't know it , i try to learn it ;) Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.