theocraticmind
Programmer
i dim an array, and use split to fill it right away. i don't give it a size because i don't know what size it will need. but i still get subscript out of range. here is the code:
Code:
Function quoteFilter(string1)
dim aray()
dim new_string
aray() = split(string1,chr(34))
for i = 0 to 100
if aray(i) = "" or aray(i) = null then
i = 101
next
end if
new_string = new_string & aray(i) & "-double-quote-"
next
quoteFilter = new_string
End Function