PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
  • Error code
  • Matrix existence
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Identifies the type of the last error caused by a Matxxx function (functions for matrix management).
Versions 25 and later
WEBDEV - Browser code This function is now available in browser code.
New in version 25
WEBDEV - Browser code This function is now available in browser code.
WEBDEV - Browser code This function is now available in browser code.
// Identify the type of error
ResError = MatError("MyMatrix")
Syntax
<Result> = MatError(<Matrix>)
<Result>: Integer
  • 0 if no error occurred on the matrix,
  • an error code (value greater than 0) otherwise.
<Matrix>: Character string (with quotes)
Name of the matrix used, defined by MatCreate.
Remarks

Error code

The error codes that can occur on a matrix are as follows:
  • 8: Insufficient memory.
  • 9: The requested position is outside the matrix.
  • 10: The name of the matrix is invalid.
  • 11: The matrices have different dimensions.
  • 12: The determinant is null. Unable to calculate the inverse of the matrix.
Caution: A WLanguage error is triggered by the errors 9, 10 and 11. The application stops.
WEBDEV - Browser code In browser code, the error codes that can occur on a matrix are:
  • 1202: The requested position is outside the matrix.
  • 1200: The name of the matrix is invalid.
  • 1203: The matrices have different dimensions.
  • 1206: The determinant is null. Unable to calculate the inverse of the matrix.
Caution: Errors 1202, 1200 and 1203 generate a WLanguage error. The application stops.

Matrix existence

The matrix existence is not checked. To check the matrix existence, use MatExist.
Related Examples:
The Matrix functions Unit examples (WINDEV): The Matrix functions
[ + ] Using matrices with the WLanguage functions.
This example, powered by WINDEV, is used to perform calculations on matrices: addition, multiplication, transposition, inversion...
The Matrix functions Unit examples (WINDEV Mobile): The Matrix functions
[ + ] Using matrices with the WLanguage functions: addition, multiplication, transposition, inversion...
Business / UI classification: Neutral code
Component: wd260mat.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment