scriptPro(data,script)
The ScriptPro object provides a simple wrapper for executing arbitrary
scripts. This object is meant to handle most of the overhead associated with
actually running the script so that executing scripts is as simple as possible
for the end user.


Syntax
- o_scriptPro(data,script)
- data: scalar Record - the field name are taken as input variables and the
field values are the corresponding variable values.
script: array Text - the script to be executed, including language and
return variable directives
- return: Record - the requested output variables as fields and an exit code
and optionally error messages
Usage
There are 4 pieces of information that the user provides:
- The script as entered in the provided text
area. This script includes three pieces in the following order:
- The Language Shebang - The language in which the
script is written. The default is an embedded python that is
provided as part of VEEOS. For any other choice the user needs
to install and configure that desired language before accessing
it through the script object. See the Supported Languages page
for more details.
#! <language> [full path to the language
engine]
- Choice of Output Variables
- a comma-delimited list of variables. Note
that these variables must conform with the
script and language requirements. In particular
most languages are case-sensitive so be sure and
follow language rules.
returnToVEE [variables]
- The Script itself written in chosen language.
- Note that this script is NOT a VEE script so the
syntax requirements must follow the language in which the script
is written. Since editing in the script object is highly
limited, it is recommended that for anything more than very
simple scripts editing be done in a proper editor and then
copied into the script object.
- Input Variables - the input variables as a
record. Here the variables are
defined by the field names and the values by the field
values. Note that records are NOT supported as field values.
Also note that as with scripts, the variable names must conform
with the requirements of the chosen language.

And there is a single output that returns the results of the
script in the form of a record. As with the Input Variables, this record will
have fields associated with each Output Variable selected. There will typically
be other fields also such as a status or associated error messages.Location
menu: veeos ==> Scripting ==> Script Pro
library: scriptLib
Example
Note the input and output variable records.

Notes
Reference
Dependencies
Supported On
VEE 7.0+, Windows 7+
See Also
Script
© 2015-2025. All Rights Reserved.
Stan Bischof (stan@worldbadminton.com).
Last updated
03 February 2023 13:04.