AMT Help Files

BEGIN_DEFINITIONS...END_DEFINITIONS

Syntax Color Legend
Command
Mandatory parameter
Optional parameter
Mandatory keyword
Optional keyword

Syntax

begin_definitions
  [const
    constant definitions]
  [type
    class definitions]
  [var
    variable definitions]
  [retained_var
    retained variable definitions]
  [booleans
    boolean function definitions]
  [shared_layouts
    shared layout definitions]
end_definitions

Description

Within BEGIN_DEFINITIONS...END_DEFINITIONS, the constants, classes, variables, retained variables, boolean functions, and shared layouts are defined. For more information about the different kinds of definitions, see Local Definitions.

Diagram

BEGIN_DEFINITIONS...END_DEFINITIONS diagram

Parameters

Declaration Type Description
CONST Declarations of local constants.
TYPE Declarations of local classes.
VAR Declarations of local variables.
RETAINED_VAR Declarations of local retained variables. Applies only to forms.
BOOLEANS Declarations of local boolean expressions.
SHARED_LAYOUTS Declarations of shared layouts.

Example

begin_definitions

const
  c-crlf : alpha 2 value '@0D@@0A@'

type
  carData : class
    private
    carColour : alpha 30
    public
    carID : numeric 10
  end_class

var
  username     : alpha 30
  userpassword : alpha 30
  result       : string
  vn-amount    : integer

retained_var
  sn-lionrecno : numeric 9

booleans
  vb-amount : (vn-amount > 0)

shared_layouts
  rec_all, rec_country : shared

end_definitions

Return to

Commands

Contents