PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

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