|
|
|
|
|
- Reading the elements found in a matrix row
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
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|