pxlTest is an Array of Ints (integers) not a String !
Length is the length, number of items, of the Array !
The count begins with 0 so the first item is pxlTest(0) and the last item is pxlTest(pxlTest.Length - 1).
If you Dim an Array like Dim MyVariable(200) As Int, the last item in the array is MyVariable(199) and not MyVariable(200).
MyVariable.Length = 200, but the last item is 199 so MyVariable.Length - 1.