bBox_PythonCompile( mode; script )
Parameters:
mode:
0 = convert both input and output line endings
1 = skip conversion of carriage returns (the FileMaker end-of-line marker) to new lines
8 = keep any previous globals
9 = skip conversion, keep previous globals
script: text to be compiled and executed laterResult:
session referenceError:
bBox_LastError ($reference)Script Step:
none
––––––––––
First appeared in: 0.50
Examples in demo file: 30
Compatibility: Client, macOS, Server, Ubuntu, WebDirect, WPE
––––––––––
Initializes the Python environment and compiles the script into byte code.
Once compiled, execute the script using one or more calls to bBox_PythonExecute.
When no longer needed, purge environment by calling bBox_PythonFinalize.
If the mode 8 flag is not set, and if there is a previously created Python environment that has not been Finalized, it will still be released, but an error may be set.
If running PSOS or as a script schedule, always check if another PSOS session is still running.