Dim a,i a = "123456789012345678901234567890123456789012345678901234567890" For i = 0 To Len(a)-1 If i mod 10 = 0 and i <> 0 Then Response.Write("<br>") Response.Write(mid(a,i+1,1)) Next
<% Dim a a = "123456789012345678901234567890123456789012345678901234567890" Response.Write(SetString(a,10))
Rem str为字符串,n为长度
Function SetString(str,n) Dim i For i = 0 To Len(str)-1 step n If i mod n = 0 and i <> 0 Then Response.Write("<br>") Response.Write(mid(str,i+1,n)) Next End Function %>
<% Dim a a = "123456789012345678901234567890123456789012345678901234567890" Response.Write(SetString(a,10))
Rem str为字符串,n为长度
Function SetString(str,n) Dim i For i = 0 To Len(str)-1 step n If i mod n = 0 and i <> 0 Then Response.Write("<br>") Response.Write(mid(str,i+1,n)) Next End Function %>