PML Customisation
User Guide
Commands
: Overview
Overview
PML commands are similar in many ways to PML forms. Forms and commands are a type of global variable. This means that a form or command cannot have the same name as any other global variable or any other form or command. A form or command definition is also the definition of an object, so a form or command cannot have the same name as any other object type.
A PML COMMAND is a PML 2 object defined in a file with extension .pmlcmd located in a directory somewhere under %PMLLIB% and with the same name as the command. It is defined in a similar way to a FORM using the SETUP syntax. A command has a number of properties - checked, enabled, value, visible and callbacks - execute, list, refresh, state. Properties are used to get/set the command state and callbacks may be added to handle command events like the execute event which is raised when the attached tool is clicked. A button for example can be attached to a command which shows a form in the execute callback.
1974 to current year.
AVEVA Solutions Limited and its subsidiaries. All rights reserved.