PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 25 → Example Array [N,X]
Example Array [N,X]
Iniciado por adrianoboller, 13,feb. 2015 13:34 - No hay respuesta
Miembro registrado
3.661 mensajes
Popularité : +175 (223 votes)
Publicado el 13,febrero 2015 - 13:34
//Example Array [N,X]

arrMensajes is array of 1 by 3 strings

i is int = 1

SQLExec(sQuery,ds)

WHILE SQLFetch(ds) = 0
arrMensajes[i,1] = SQLGetCol(ds, 1) //id
arrMensajes[i,2] = SQLGetCol(ds, 2) //numero
arrMensajes[i,3] = SQLGetCol(ds, 3) //mensaje
i++
Dimension(arrMensajes, i, 3)
END