Hi,
I read data from a file and copy each element in each row to an array. I then assign each element in the array to the correct datatype before passing to a stored proc to load into a table. E.g

strArray() = Split(strLine, ",")

dteInvoice = strArray(0)
lngNumber = strArray(1)

If the data is invalid and hence can't be stored in that particular datatype, it jumps to my error handler and captures the error code.

I would then like to display a message that strArray(x) is invalid.

Without having a counter that stores the value of x is there anyway of displaying the value of the current variable being processed?