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 column
MatReadColumn (Example)
Reading the elements found in a matrix column
The following code is used to read the value of the elements found in a matrix column. The name of the matrix and the column to read are entered by the user in edit controls (EDT_MatrixName, EDT_ElementColumn).
// -- Click code on BTN_ReadColumn
// Declare the variable
ResReadColumn is character string
// Read the column elements. Each element will contain 10 characters
// including 2 digits after the decimal point, in real format.
ResReadColumn = MatReadColumn(EDT_MatrixName, EDT_ElementColumn, "10.2f")
// Error?
IF MatError(EDT_MatrixName) = 0 THEN
Info("The elements found in column " + EDT_ElementColumn + " are: " + ResReadColumn)
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