Matrix.Width
------------

Queries width of matrix.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Matrix](component_Matrix.md) | [9.2](newinversion92.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "Matrix.Width"; MatrixRef ) 

**MBS**( **"Matrix.Width";** /\* Queries width of matrix. \*/  
**$MatrixRef**) /\* The matrix reference number.e.g. $matrix \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| MatrixRef | The matrix reference number. | $matrix |

### Result

Returns number or error.

### Description

Queries width of matrix.  
### Examples

Check size of matrix:

 If \[ MBS ("[Matrix.Height](MatrixHeight.md)"; $matrix ) = MBS ("Matrix.Width"; $Matrix ) \]   
 Show Custom Dialog \[ "The matrix is square" ; "number of rows and columns are equal!" \]   
End If  
### See also

- [Matrix.Clear](MatrixClear.md)
- [Matrix.ConvertDataType](MatrixConvertDataType.md)
- [Matrix.Evaluate](MatrixEvaluate.md)
- [Matrix.List](MatrixList.md)
- [Matrix.Multiply](MatrixMultiply.md)
- [Matrix.New](MatrixNew.md)
- [Matrix.NewWithSQL](MatrixNewWithSQL.md)
- [Matrix.Resize](MatrixResize.md)
- [Matrix.SearchAndReplace](MatrixSearchAndReplace.md)
- [Matrix.Text](MatrixText.md)

### Example Databases

- [XL/XL Test](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/XL/XL%20Test.shtml#4ScriptAnchor_)

### Blog Entries

- [Import CSV with Matrix functions](https://www.mbsplugins.de/archive/2020-11-20/Import_CSV_with_Matrix_functio/monkeybreadsoftware_blog_filemaker)
- [Matrix functions for FileMaker](https://www.mbsplugins.de/archive/2019-05-28/Matrix_functions_for_FileMaker/monkeybreadsoftware_blog_filemaker)

### FileMaker Magazin

- [Ausgabe 4/2019, Seite 30](https://filemaker-magazin.de/neuigkeit/4053-Appetithappen-FMM_201904)

This function checks for a license.

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

  
[Matrix.Text](MatrixText.md) - [MediaLibraryBrowser.getMediaLibraries](MediaLibraryBrowsergetMediaLibraries.md)

[HTML Version](MatrixWidth.shtml)