Ver Mensaje Individual
  #3 (permalink)  
Antiguo 16/07/2009, 04:40
Avatar de Adler
Adler
Colaborador
 
Fecha de Ingreso: diciembre-2006
Mensajes: 4.671
Antigüedad: 18 años, 3 meses
Puntos: 126
Respuesta: consulta en 2 columnas

Hola

Shiryu que de tiempo!!!

Has de usar getrows, como te dice el sensei. Para que veas como se hace a dos columnas prueba con esto. Compremdelo y adaptalo al caso que te ocupa

Código asp:
Ver original
  1. <%
  2. Dim total_registros_encontrados, j, temp, x, arreglo, i
  3. total_registros_encontrados = 52
  4.  
  5. For j = 0 to CInt(total_registros_encontrados) Step 5
  6. temp = temp & " " & j
  7. Next 'j
  8.  
  9. arreglo = Split(Replace(Trim(temp), " ", ","),",")
  10.  
  11. For x = 0 to UBound(arreglo)
  12. arreglo(x) = arreglo(x)
  13. Next
  14. %>
  15.  
  16. <table border="1">
  17. <tr>
  18.  
  19. <%
  20. For i = 1 to CInt(total_registros_encontrados)
  21. Response.Write "<td>" & i & "</td>"
  22.  
  23.  
  24. ' ==== Se puede hacer de
  25. ' -------- Esta manera
  26. If i Mod 5 = 0 Then
  27. Response.Write "</tr><tr>"
  28. End If
  29. ' ------
  30. ' ------ O de esta otra
  31. 'cad = " i = " & Join(arreglo, " or  i  = ")
  32. 'If eval(cad) Then
  33. 'fila = i / 5
  34. 'Response.Write "</tr><tr>"
  35. 'End if
  36. ' ---------
  37. ' ==============
  38. Next 'i
  39.  
  40. %>
  41. </tr>
  42. </table>

Suerte
__________________
Los formularios se envían/validan con un botón Submit
<input type="submit" value="Enviar" style="background-color:#0B5795; font:bold 10px verdana; color:#FFF;" />