DR00ME Posted February 23, 2004 Posted February 23, 2004 Dim R(76800) As Byte once I have inserted stuff in the array I clear it with: Array.Clear(R, 0, 76800) next time I try to put stuff in it -> indexOutOfRangeException. So am I clearing the array in a wrong way or what ? Help needed. 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 February 23, 2004 Leaders Posted February 23, 2004 how are you trying to add items back to the array? ie : to what index? i just did this simple test which worked fine ... Dim R(76800) As Byte R(0) = 123 MessageBox.Show(R(0)) '/// first value Array.Clear(R, 0, R.Length) '/// clear all values R(0) = 222 MessageBox.Show(R(0)) '/// second value Quote
DR00ME Posted February 23, 2004 Author Posted February 23, 2004 (edited) Problem solved, I had this Integer indexcounter overflowing.... thx anyway! Edited February 23, 2004 by DR00ME 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
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.