# script

The Script object provides a simple wrapper for executing arbitrary scripts. This object is meant to take care of all the overhead associated with actually running the script so that executing scripts is as simple as possible for the end user.

### Syntax

None- object only.

### Usage

There are 4 pieces of information that the user provides:

1. The script as entered in the provided text area. 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.
2. The Language - 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.
3. 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 teh chosen language.
4. 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.

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

library: scriptLib

### Example

Note the input and output variable records.

### Notes

### Reference

### Dependencies

This function uses ScriptPro for the actual execution

### Supported On

VEE 7.0+, Windows 7+

### See Also

ScriptPro

© 2015-2021. All Rights Reserved. Stan Bischof (stan@worldbadminton.com). Last updated 09 August 2021 18:25.