PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
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
Initializes all the elements found in a matrix of a given size. If the matrix is larger, only the specified elements will be filled.
For example:
  • Initialize all the matrix elements with the value 5. This matrix contains 2 rows and 3 columns:
ResFill = MatFill("MyMatrix", 5, 2, 3)
  • Initialize the matrix elements from row 1 to row 2 and from column 1 to column 3 with the value 5. Only part of the matrix is initialized:
ResFill = MatFill("MyMatrix", 5, 2, 3)
Versions 15 and later
Android This function is now available for the Android applications.
New in version 15
Android This function is now available for the Android applications.
Android This function is now available for the Android applications.
Versions 17 and later
iPhone/iPad This function is now available for the iPhone/iPad applications.
New in version 17
iPhone/iPad This function is now available for the iPhone/iPad applications.
iPhone/iPad This function is now available for the iPhone/iPad applications.
Versions 18 and later
Android Widget This function is now available in Android Widget mode.
Universal Windows 10 App This function is now available in Windows Store apps mode.
New in version 18
Android Widget This function is now available in Android Widget mode.
Universal Windows 10 App This function is now available in Windows Store apps mode.
Android Widget This function is now available in Android Widget mode.
Universal Windows 10 App This function is now available in Windows Store apps mode.
Versions 21 and later
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
New in version 21
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
// Fill a matrix containing 2 rows and 3 columns with the number 5
ResFill = MatFill("MyMatrix", 5, 2, 3)
Syntax
<Result> = MatFill(<Matrix Name> , <Value> , <Number of Rows> , <Number of Columns>)
<Result>: Boolean
  • True if the fill operation was performed,
  • False otherwise. To find out the error details, use ErrorInfo associated with the errMessage constant.
<Matrix Name>: Character string (with quotes)
Name of the matrix to fill, defined by MatCreate.
<Value>: Real
Value given to all the matrix elements.
<Number of Rows>: Integer
Number of rows to fill.
<Number of Columns>: Integer
Number of columns to fill.
Remarks
A matrix must exist before it can be filled. To check the matrix existence, use MatExist.
Components
WINDEVWEBDEV - Server codeReports and Queries wd230mat.dll
Windows Mobile wp230mat.dll
Java wd230java.jar
Linux wd230mat.so
Android wd230android.jar
Minimum required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment