I'm trying to use the split function in ASP and it returns me an array.
I'm splitting a form field at the space.
But I'm getting this error on the IF statement and I have suspicion that it's when there is no space.
Subscript out of range: '[number: 1]'
What can I do to avoid this problem?
WordArray = Split(carMake, " ")
if WordArray(0) = WordArray(1) then
carMake = WordArray(0)