11. marts 2005 - 02:51Der er
2 kommentarer og 1 løsning
fjern er komma fra en str
Hey E
IIS5.0/ASP/IE
jeg har denne løkke men har brug for at fjerne det sidste komma , fra den endelige strValg.
løkke: for i = 0 to ubound(Indhold1) if Request.Form(Indhold1(i)) = "on" then strValg = strValg & "''" & (Indhold1(i)) & "''" & "," next for i = 0 to ubound(Indhold2) if Request.Form(Indhold2(i)) = "on" then strValg = strValg & "''" & (Indhold2(i)) & "''" & "," next Session("strValg") = strValg Response.Write(Session("strValg"))
for i = 0 to ubound(Indhold2) if Request.Form(Indhold2(i)) = "on" then strValg = strValg & "''" & (Indhold2(i)) & "''" if i < ubound(Indhold2) then strValg = strValg & "," end if next
for i = 0 to ubound(Indhold1) if Request.Form(Indhold1(i)) = "on" then strValg = strValg & "''" & (Indhold1(i)) & "''" & "," end if next for i = 0 to ubound(Indhold2) if Request.Form(Indhold2(i)) = "on" then strValg = strValg & "''" & (Indhold2(i)) & "''" & "," end if next strValg = Left(strValg, Len(strValg) - 1) Session("strValg") = strValg Response.Write(Session("strValg"))
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.