AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Ayuda / WLanguage / Funciones WLanguage / Funciones estándar / Funciones de valores numéricos / Funciones de matrices
  • Number of columns in a matrix
MatNbColumn (Example)
Number of columns in a matrix
The following code is used to find out the number of columns in a matrix. The name of the matrix is entered by the user in an edit control (EDT_MatrixName).
// -- Click code on BTN_NbColumns
// Declare the variable
ResNbColumns is int
// Number of columns?
ResNbColumns = MatNbColumn(EDT_MatrixName)
// Error?
IF MatError(EDT_MatrixName) = 0 THEN
Info("The matrix contains: " + ResNbColumns + " columns")
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