DEFINE CLASS ... END CLASS

Syntax

DEFINE CLASS [ Scope ] class=Name
 
   [ statements ]
END CLASS

Argument

Description

Scope

Optional. Default = "LOCAL".

  • "SHARED" = The class exists as long as a window is open. Even if you change the layout that is loaded in the window (by using the File > Open… command from within the Form or Browse window), the class continues to exist.

  • "GLOBAL" = The class exists as long as Alpha Five is running, until you close the current database.

class=Name

The name of the class to be created.

Description

The DEFINE CLASS ... END CLASS language elements create a new class. The class may DIM and assign values to variables. It may also include functions (methods).

Examples

DEFINE CLASS ClassName

    ' dim local variables

    ' assign values to variables

    ' define functions

END CLASS

See Also

Language Reference, Reserved Words

Supported By

Alpha Five Version 8 and Above