ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / Numeric values functions / Matrix functions
  • Reading the elements found in a matrix row
MatReadLine (Example)
Reading the elements found in a matrix row
The following code is used to read the value of the elements found in a matrix row. The name of the matrix and the row to read are entered by the user in edit controls (EDT_MatrixName, EDT_ElementRow).
// -- Click code on BTN_ReadRow
// Declare the variable
ResReadRow is string
// Read the row elements. Each element will contain 10 characters
// including 2 digits after the decimal point, in real format.
ResReadRow = MatReadLine(EDT_MatrixName, EDT_ElementRow, "10.2f")
// Error?
IF MatError(EDT_MatrixName) = 0 THEN
Info("The elements found in row " + EDT_ElementRow + " are: " + ResReadRow)
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