AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Ayuda / WLanguage / Funciones WLanguage / Funciones estándar / Funciones de valores numéricos / Funciones de matrices
  • Reading an element in a matrix
Reading an element in a matrix
The following code is used to read the value of a matrix element. The name of the matrix, the row and column of the element to read are entered by the user in edit controls (EDT_MatrixName, EDT_ElementRow, EDT_ElementColumn).
// -- Click code on BTN_Read
// Declare the variable
ResRead is real
// Read the element
ResRead = MatRead(EDT_MatrixName, EDT_ElementRow, EDT_ElementColumn)
// Error?
IF MatError(EDT_MatrixName) = 0 THEN
Info("The value of the element (row " + EDT_ElementRow + ", "+ ...
"column " + EDT_ElementColumn + ") is: " + ResRead)
ELSE
// Display the error message
Error(ErrorInfo(errMessage))
END
Versión mínima requerida
  • Versión 9
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 27/05/2022

Señalar un error o enviar una sugerencia | Ayuda local