###This is only part of the page, there are other functions that i've removed to limit the ammount of code needing to be read### strSkipped = "bob_smith_2003|john_doe_2003|sally_mee_2004" arrSkipped = split(strSkipped,"|") For i = 0 to ubound(arrSkipped) response.write "" & strMyText & "
" NEXT Function SplitMyName(strMyText, strPart) MyArray2 = split(strMyText,"_") IF strPart = "forename" THEN SplitMyName = MyArray2(0) ELSEIF strPart = "surname" THEN SplitMyName = MyArray2(1) END IF End Function%> ###The FOR NEXT LOOP works perfectly, and the function is being fed the correct text - if i do "response.write strMyText" it is printing correctly and "isArray(MyArray2)" returns true###