Variable.List
-------------

Returns list of all variables names and values.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Variable](component_Variable.md) | [4.0](newinversion40.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "Variable.List" { ; Delimiter } ) 

**MBS**( **"Variable.List";** /\* Returns list of all variables names and values. \*/  
**$Delimiter**) /\* Optional; Optionally, the delimiter to use. Default is tab character.e.g. ": " \*/ 

(old name: FM.VariableList)

### Parameters

| Parameter | Description | Example | Flags |
|---|---|---|---|
| Delimiter | Optionally, the delimiter to use. Default is tab character. | ": " | Optional |

### Result

Returns list.

### Description

Returns list of all variables names and values.  
Container values or multiline texts will probably not be handled correctly for the result. So works best if you have just single line values.  
### Examples

Show variable names and values:

 Set Variable \[ $r ; Value: MBS ( "[Variable.Set](VariableSet.md)"; "test"; 123 ) \]   
Set Variable \[ $r ; Value: MBS ( "[Variable.Set](VariableSet.md)"; "Hello"; "World" ) \]   
Show Custom Dialog \[ "Variables" ; MBS ( "Variable.List" ) \]  
### See also

- [Variable.Exists](VariableExists.md)
- [Variable.Get](VariableGet.md)
- [Variable.Names](VariableNames.md)
- [Variable.Reset](VariableReset.md)
- [Variable.Set](VariableSet.md)

### Example Databases

- [Utility functions/Global Variables](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Utility%20functions/Global%20Variables.shtml#3ScriptAnchor_)

### Blog Entries

- [The power of global variables](https://www.mbsplugins.de/archive/2016-06-09/The_power_of_global_variables/monkeybreadsoftware_blog_filemaker)
- [MBS Filemaker Plugin, version 4.0pr1](https://www.mbsplugins.de/archive/2014-01-03/MBS_Filemaker_Plugin_version_4/monkeybreadsoftware_blog_filemaker)

### FileMaker Magazin

- [Ausgabe 2/2014, Seite 31](https://filemaker-magazin.de/neuigkeit/3731-Appetithappen-FMM_201402)

This function checks for a license.

Created 18th August 2014 , last changed 15th April 2025

  
[Variable.Get](VariableGet.md) - [Variable.Lookup](VariableLookup.md)

[HTML Version](VariableList.shtml)