Xbasic
DEFINE CLASS ... END CLASS
Syntax
DEFINE CLASS [ Scope ] className
statements
END CLASS
Arguments
- Scope
Default = "LOCAL".
"SHARED" = Desktop applications. 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" = Desktop applications. The class exists as long as Alpha Anywhere is running, until you close the current database.
- className
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).
Example
DEFINE CLASS ClassName ' dim local variables ' assign values to variables ' define functions END CLASS
See Also