ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / Numeric values functions / Matrix functions
  • Number of rows in a matrix
MatNbLine (Example)
Number of rows in a matrix
The following code is used to find out the number of rows in a matrix. The name of the matrix is entered by the user in an edit control (EDT_MatrixName).
// --Click code on BTN_NbRows
// Declare the variable
ResNbRows is int
// Number of rows?
ResNbRows = MatNbLine(EDT_MatrixName)
// Error?
IF MatError(EDT_MatrixName) = 0 THEN
Info("The matrix contains: " + ResNbRows + " rows")
ELSE
// Display the error message
Error(ErrorInfo(errMessage))
END
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help