ho fatto una funzioncina per splittare una stringa in una array in base alla lunghezza
codice:
function RestArr(strValore,intLung,arrPassaggio)
dim intDimArray
intDimArray = Len(strValore) \ intLung
if (Len(strValore) mod intLung) > 0 then
intDimArray = intDimArray + 1
end if
redim preserve arrPassaggio(intDimArray - 1)
for i = 1 to (intDimArray * intLung) step intLung
arrPassaggio(i \ intLung) = Mid(strValore,i,intLung)
next
end function
dim strTesto
dim arrRis()
strTesto = "000hhhtttfffc"
call RestArr(strTesto,3,arrRis)
for i = 0 to UBound(arrRis)
Response.Write arrRis(i) & "|
"
next