AMT Help Files
homeLION Language ReferenceCommandsBEGIN-DEFINITIONS...END-DEFINITIONS

BEGIN_DEFINITIONS...END_DEFINITIONS

Syntax

begin_definitions
  [const
    constants definitions]
  [type
    classes definitions]
  [var
    variables definitions]
  [retained_var
    retained variables definitions]
  [booleans
    boolean function definitions]
  [shared_layouts
    shared layouts definitions]
end_definitions

Description

Within the 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

Parameters

Declaration Type Description
CONST The declarations of local constants.
TYPE The declarations of local classes.
VAR The declarations of local variables.
RETAINED_VAR The declarations of local retained variables. Applies only to forms.
BOOLEANS The declarations of local boolean expressions.
SHARED_LAYOUTS The declarations of the 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

 Go to top