Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
Python.SetValue
Sets a variable in the Python environment.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
Python | 14.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
MBS( "Python.SetValue"; PythonRef; VariableName; Value ) More
Parameters
Parameter | Description | Example |
---|---|---|
PythonRef | The Python reference number. | $python |
VariableName | The variable name. | "test" |
Value | The value to set. |
Result
Returns OK or error.
Description
Sets a variable in the Python environment.You may use the variable to easily transfer huge blocks of JSON text to process in Python.
Use Python.GetValue later to query value back.
Examples
Set a variable:
Set Variable [ $r ; Value: MBS("Python.SetValue"; $p; "Hello"; "World") ]
See also
Example Databases
Blog Entries
Created 23th May 2024, last changed 31st May 2024