No, he's subtracting from FieldLengths(i) which is assumably and int or long.

Have you tried a watch or locals windows with the break point on the NEXT statement so you can see all the variable in each iteration? looks to me like there's a piece of data in one of the arrays which is too long or short and and maybe passing a negative to the space function.

Use you're debug windows, the imediate window won't tell you enough.

Put a bit more code up and we can test it for you be we'll need some values.

Paul