Python.GetValue
---------------

Queries a variable in the Python environment.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Python](component_Python.md) | [14.3](newinversion143.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "Python.GetValue"; PythonRef; VariableName ) 

**MBS**( **"Python.GetValue";** /\* Queries a variable in the Python environment. \*/  
**$PythonRef**; /\* The Python reference number.e.g. $python \*/   
**$VariableName**) /\* The variable name.e.g. "test" \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| PythonRef | The Python reference number. | $python |
| VariableName | The variable name. | "test" |

### Result

Returns value or error.

### Description

Queries a variable in the Python environment.  
Returns numbers as numbers and everything else as text.  
You may use the variable to easily transfer huge blocks of JSON text to back from Python.  
### See also

- [Python.DeleteValue](PythonDeleteValue.md)
- [Python.HasValue](PythonHasValue.md)
- [Python.SetValue](PythonSetValue.md)

### Example Databases

- [Python](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Python.shtml#2ScriptAnchor_)

### Blog Entries

- [Using Python in FileMaker](https://www.mbsplugins.de/archive/2024-06-24/Using_Python_in_FileMaker/monkeybreadsoftware_blog_filemaker)

Created 23th May 2024 , last changed 31st May 2024

  
[Python.GetTag](PythonGetTag.md) - [Python.HasValue](PythonHasValue.md)

[HTML Version](PythonGetValue.shtml)