Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples
New in version: 9.0   9.1   9.2   9.3   9.4   9.5   10.0   10.1   10.2   10.3    Statistic  


Sets a single value in the matrix.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
Matrix 9.2 Yes Yes Yes Yes Yes
MBS( "Matrix.SetValue"; MatrixRef; Row; Column { ; Value } )   More


Parameter Description Example value
MatrixRef The matrix reference number. $matrix
Row The zero based row number. 2
Column The zero based column number. 2
Value Optional
The new value.


Returns OK or error.


Sets a single value in the matrix.
The original data type is retained.


Test set and get:

Set Variable [ $m ; Value: MBS ("Matrix.New"; 2; 2) ]
Set Variable [ $r ; Value: MBS( "Matrix.SetValue"; $m; 0; 0; Contacts::Company ) ]
Set Field [ Contacts::Job Title ; MBS( "Matrix.GetValue"; $m; 0; 0 ) ]
Set Variable [ $r ; Value: MBS ("Matrix.Free"; $m) ]

Sets a value:

Set Variable [ $r; Value: MBS("Matrix.SetValue"; $matrix;1;1;40) ]

See also

Blog Entries

FileMaker Magazin

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

Matrix.SetRowName   -   Matrix.Sum

Feedback: Report problem or ask question.

MBS FileMaker Plugins