Code: Select all
function main()
LOCAL aVector:= {}
LOCAL nFila:= 0
LOCAL nColumna:= 0
PUBLIC aMatriz:= {}
FOR nFila:= 1 TO 10
aVector:={}
ASize( aVector, 4)
AAdd( aMatriz, aVector )
NEXT nFila
for nFila:= 1 to 10
for nColumna:= 1 to 4
if aMatriz[ nFila ][ nColumna ] == NIL
? "es nil", nFila, nColumna // Renglon A
else
? "Fila", nFila, ;
"Columna", nColumna,;
"valor", aMatriz[ nFila ][ nColumna ]
endif
next nFila
return ( nil )
Gracias.