Tema: Duda código
Ver Mensaje Individual
  #1 (permalink)  
Antiguo 02/03/2005, 14:02
pacoasp
 
Fecha de Ingreso: diciembre-2004
Mensajes: 5
Antigüedad: 20 años, 4 meses
Puntos: 0
Duda código

Me podría decir alguien porque en este código no se asignan los valores a la matriz directamente?. Para qué se usan las variables col* y que significan los valores 1 y 34 que se utilizan en: col=string(1,34) . Gracias.




<%
Set Datos=conexion.execute("Select a, b, c, d from Tabla")

do while not Datos.EOF
lon = lon + 1
Datos.MoveNext
loop
Datos.MoveFirst
%>

longitud = <%=lon%>
Dim matriz()
Redim matriz(longitud-1,3)

<%

Int indice
indice = 0
do while not Datos.EOF


Response.Write("matriz(" & indice & ",0)=" & Datos("a"))
Response.Write(vbcr)
col=string(1,34)
col1 = col & Datos("b")
col3 = col1 & col
Response.Write("matriz(" & indice & ",1)=" & CStr(col3) )
Response.Write(vbcr)

col1 = col & Datos("c")
col3 = col1 & col
Response.Write("matriz(" & indice & ",2)=" & CStr(col3) )
Response.Write(vbcr)

col1 = col & Datos("d")
col3 = col1 & col
Response.Write("matriz(" & indice & ",3)=" & CStr(col3) )
Response.Write(vbcr)
indice = indice + 1
Datos.MoveNext
loop

%>