Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 9.5   10.0   10.1   10.2   10.3   10.4   10.5   11.0   11.1   11.2    Statistic    FMM    Blog  

Matrix.GetValue

Queries a single value.

Component Version macOS Windows Linux Server iOS SDK
Matrix 9.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "Matrix.GetValue"; MatrixRef; Row; Column )   More

Parameters

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

Result

Returns value or error.

Description

Queries a single value.
Retains original data type.

Examples

Test setting and getting values:

Set Variable [ $matrix ; Value: MBS( "Matrix.New"; 3; 4 ) ]
Set Variable [ $r ; Value: MBS( "Matrix.SetValue"; $matrix; 0; 0; "Hello" ) ]
Set Variable [ $r ; Value: MBS( "Matrix.SetValue"; $matrix; 1; 0; 123,456 ) ]
Set Variable [ $r ; Value: MBS( "Matrix.SetValue"; $matrix; 2; 0; Get(CurrentTimestamp )) ]
Set Variable [ $t ; Value: MBS( "Matrix.GetValue"; $matrix; 0; 0) ]
Set Variable [ $v ; Value: MBS( "Matrix.GetValue"; $matrix; 1; 0) ]
Set Variable [ $z ; Value: MBS( "Matrix.GetValue"; $matrix; 2; 0) ]
Show Custom Dialog [ "Results" ; $t & ¶ & $v & ¶ & $z ]
Show Custom Dialog [ "Results" ; MBS("FM.DataType"; $t) & ¶ & MBS("FM.DataType"; $v) & ¶ & MBS("FM.DataType"; $z) ]
Set Variable [ $r ; Value: MBS( "Matrix.Release"; $matrix ) ]

See also

FileMaker Magazin

Created 8th April 2019, last changed 2nd November 2020


Matrix.GetText - Matrix.Height

Feedback: Report problem or ask question.