Command and DDE Script Language Overview

 

The Customizer module has a scripting capability that allows you to create complex commands that can be used to send Dynamic Data Exchange (DDE) messages or execute programs with arguments based on data values from panel controls.

The script language used by the Customizer module is a subset of the BASIC programming language. The information documented in this topic is used only for the data reference part of a Customizer script. The data reference must be enclosed in brackets (either brackets [ ] or braces { }) to distinguish it from the rest of the script, which contains either DOS/Windows command text or a DDE script. For more information, see Data References.

The script language allows you to reference data contained in the panel controls and manipulate the data using string or numeric operators. For more information, see Scripting Variables and System Scripting Variables. Special functions are also available to perform conversions and to format the data. For more information, see Functions and Operators.

The following scripts can be used with the Customizer module.

  • Command scripts are used to create an executable command. The executable command can be a program name or batch file with arguments. For more information, see Command Scripts.

  • The DDE script is used to send DDE messages to an application. For more information, see DDE Scripts.

  • MS Script is used to process VBScript, JScript, and PvxScript.

Note The information in this topic does not cover MS Script.

These scripts are executed when an associated Link Control button is clicked.

In Command and DDE scripts, you can also reference data values stored in panel controls. For example, an image of the inventory item that is currently selected in the Item Maintenance panel can be displayed. When referencing panel data, you must enclose the reference using either brackets [ ] or braces { }. Anything inside of the brackets or braces is evaluated at the time of execution and the content is replaced by the actual data value.