AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Ayuda / WLanguage / Funciones WLanguage / Funciones estándar / Funciones de valores numéricos / Funciones de matrices
  • Reading the elements found in a matrix row
MatReadLine (Example)
Reading the elements found in a matrix row
The following code is used to read the value of the elements found in a matrix row. The name of the matrix and the row to read are entered by the user in edit controls (EDT_MatrixName, EDT_ElementRow).
// -- Click code on BTN_ReadRow
// Declare the variable
ResReadRow is string
// Read the row elements. Each element will contain 10 characters
// including 2 digits after the decimal point, in real format.
ResReadRow = MatReadLine(EDT_MatrixName, EDT_ElementRow, "10.2f")
// Error?
IF MatError(EDT_MatrixName) = 0 THEN
Info("The elements found in row " + EDT_ElementRow + " are: " + ResReadRow)
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