Ok, so, I'm trying to copy an array starting at a specific based on the number of variables I have. I have the program give me the number of variables. What I need is to copy the original array, UnsortedArray, start at the index of var + 1. I have tried the Array.Copy and Array.CopyTo, but I get the error that my new array, UnsortedNumArray, is used before it has a value.
I know I've mostly overlooked something. Could you please point me in the right direction? How am I going about this wrong?
The code I have to count the number variables is this:
Dim CommaCount As Long = Join(UnsortedArray, ",").Split(",").Length
Dim Var As Integer
Var = CommaCount - UnsortedArray.Length + 1
MessageBox.Show(Var)