Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old


Queries text of matrix for CSV export.

Component Version macOS Windows Linux Server iOS SDK
Matrix 9.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "Matrix.CSV"; MatrixRef { ; firstRow; lastRow; firstCol; lastCol; rowSeparator; colSeparator; flags } )   More


Parameter Description Example Flags
MatrixRef The matrix reference number. $matrix
firstRow The index of first row.
Default is 0.
0 Optional
lastRow The index of last row.
Default is Matrix.Height-1.
5 Optional
firstCol The index of first column.
Default is 0.
0 Optional
lastCol The index of last column.
Default is Matrix.Width-1.
6 Optional
rowSeparator The row separator.
Default is CR.
Can be more than one character.
Char(13) Optional
colSeparator The column separator.
Default is semicolon.
Can be more than one character.
";" Optional
flags Available in MBS FileMaker Plugin 13.0 or newer.
Various flags.
1: Pass 1 to put all text values in quotes.
2: Include colun names in first row (new in v13.1).
0 Optional


Returns text or error.


Queries text of matrix for CSV export.
You can use this method to quickly get all values in a given area as text.
If needed, the plugin puts values in quotes and escape quotes and newlines.

Please use Text.WriteTextFile to write to text file if you need CSV export.


Show matrix in dialog as CSV:

Show Custom Dialog [ “The Matrix" ; MBS( "Matrix.CSV"; $matrix; 0; 2; 0; 2; Char(13); " " ) ]

See also

Release notes

Example Databases

Blog Entries

This function checks for a license.

Created 8th April 2019, last changed 31st March 2023

Matrix.Avg - Matrix.CSVSplit