Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Guides   Examples
New in version: 8.0   8.1   8.2   8.3   8.4   8.5   9.0   9.1   9.2   9.3    Statistic  

Matrix.New

Creates a new matrix (2D array).

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
Matrix 9.2 Yes Yes Yes Yes Yes
MBS( "Matrix.New"; Height; Width )   More

Parameters

Parameter Description Example value
Height The height of the matrix. 3
Width The width of the matrix. 4

Result

Returns matrix reference number or error.

Description

Creates a new matrix (2D array).
Please call Matrix.Free later to free the matrix object.

Internally we store all data in FileMaker data types, so times, dates, timestamps, numbers and containers are preserved as they are and not converted to texts.

Examples

Creates a matrix:

Set Variable [ $matrix ; Value: MBS( "Matrix.New"; 3; 4 ) ]
Show Custom Dialog [ "Size" ; MBS( "Matrix.Width"; $matrix ) & " x " & MBS( "Matrix.Height"; $matrix ) ]
Set Variable [ $r ; Value: MBS( "Matrix.Free"; $matrix ) ]

See also

Created 8th April 2019, last changed 8th April 2019


Matrix.Min   -   Matrix.NewWithSQL

Feedback: Report problem or ask question.




Links
MBS FileMaker tutorial videos