PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
  • 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
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment