PML Customisation
User Guide
General Features of PML
General Features of PML
Functions, Macros and Object Definitions
Functions and Macros are PML Files that contain stored sequences of commands. The PML File is invoked whenever this sequence of commands is required.
The PML File may also include control logic which alters the order in which the commands are carried out and special commands for handling errors.
PML Files are normally created using a text editor.
PML Functions and methods on objects (including forms and commands) are the recommended way of storing command sequences because:
•
There is a check that they have been called with the right type of arguments.
•
Arguments can return values.
•
A PML Function or method can return a result of any type.
Most new AppWare code is written as methods on objects. PML Macro
s
are explained in
Macros
as they are the basis of the older AppWare code.
PML Macros are normally stored in a directory under the
PMLUI
search-path.
PML Functions are automatically loaded from a directory under the
PMLLIB
search-path.
1974 to current year.
AVEVA Solutions Limited and its subsidiaries. All rights reserved.