ProcScript: Statements

The Uniface ProcScript language consists of a series of ProcScript statements that cause Uniface to perform specified actions, such as running a form, retrieving data, locking an occurrence, calling another ProcScript module, and so on.

Descriptions of ProcScript statements include the following sections:

  • Syntax—describes how the statement is used, including any switches and parameters that can be specified
  • Switches—explains any switches that can be used with the statement
  • Parameters—explains any parameters that can be used with the statement

    Note: Parameters can be expressions that evaluate to the expected value, thus a parameter value may be provided as a literal value, or as field, variable, or function.

  • Return value—describes the values, if any, that the statement returns in $status, $procerror, and $result
  • Use—describes any limitations placed on the use of an instruction, either in particular triggers or component types

    In service and report components, statements that can reference global objects are not allowed if the component property Self-Contained is selected. In addition, any reference to global and general variables (for example, as an argument or in an expression) is not allowed. If Self-Contained is cleared, warning messages are generated when these are compiled.

    Note:  All statements are allowed in the apStart trigger of the application shell.
  • Description and Examples—provide more details about the ProcScript statement and its use