'私の書いたコード Dim A(upperIndex), B(upperIndex), C(upperIndex), D(upperIndex) As Integer For Each x In q Integer.TryParse(x.Columns(0), A(x.RowIndex)) Integer.TryParse(x.Columns(1), B(x.RowIndex)) ' はちさんの書いたコード Dim X(upperIndex), Y(upperIndex), UD1(upperIndex), UD2(upperIndex) As Single For Each X In q Single.TryParse(X.Columns(0), A(X.RowIndex)) Single.TryParse(X.Columns(1), B(X.RowIndex))