CODE
<%
'Criado por : Jonathan R. Cardozo (jonathandj)
'Data : 31/08/2007
variavel = "14=test&7=test1&10=test2&6=test3"
arrayVar = split(variavel,"&")
for i=0 to ubound(arrayVar)
arrrayAux = split(arrayVar(i),"=")
for j = 0 to ubound(arrrayAux)
  if j mod 2 = 0 then
   if var = "" then
    var = arrrayAux(j)
   else
    var = var&","&arrrayAux(j)
   end if
  end if
next
next
arrayVar = split(var,",")
Set Rs = Server.CreateObject("ADODB.RecordSet")
Rs.Fields.Append "valor", 200, 255
Rs.Open
For i = 0 to ubound(arrayVar)
Rs.AddNew
Rs.Fields("valor").Value = (right("00000"& arrayVar(i),3))
Next
Rs.Sort = "valor Asc"
Rs.MoveFirst
Do While Not Rs.EoF
    Response.Write(rs.fields("valor").value) &"<br>"
    Rs.MoveNext
Loop
Rs.Close
Set Rs = Nothing
%>

Você gostou? Comente no fórum!

Mais recentes em ASP

Asp info
Por Lucasbr - Veja as configurações do seu servidor...
Criptografia sha-256 em asp
Por Lucasbr - A família de sha (secure hash algorithm) está relacionada...
Tabela dinâmnica
Por RobsonUgoStoso - Montando uma tabela dinâmica com datas...
Cdosys error '8004020f' - a solução
Por David Cruvinel - A solução...
Recuperar stored procedure
Por Pinguim - No trampo novo, precisei recuperar algumas storedprocedures....

Ver mais Artigos de ASP.

Ver e retirar outras dúvidas no fórum Webly.

Alguns Direitos Reservados | RSS | O Fórum

Webly Portal e Fóruns - Internet + Humana | Design by ArthurHenrique.com