Harbour Statements

Declaration

ANNOUNCE Declaration of a module identifier name
FIELD Declares a field variable
LOCAL Declares and optionally initializes a local memory variable
MEMVAR Declares PRIVATE or PUBLIC variables
PARAMETERS Declares PRIVATE function parameters
PRIVATE Creates and optionally initializes a PRIVATE memory variable
PUBLIC Creates and optionally initializes a PUBLIC memory variable
REQUEST Declare a module request list
STATIC Declares and optionally initializes a STATIC memory variable

Implementation

BEGIN SEQUENCE Declares a control structure for error handline
DO Executes a function or procedure
DO CASE Executes a block of statements based on one or more conditions
DO WHILE Executes a block of statements while a condition is true
EXIT PROCEDURE Declares a procedure to execeute when a program terminates
EXTERNAL Declares the symbolic name of an external function or procedure for the linker
FOR…NEXT Executes a block of statements a specific number of times
FOR EACH Iterates elements of data types that can be seen as a collection
FUNCTION Declares a function along with its formal parameters
IF Executes a block of statements based on one or more conditions
INIT PROCEDURE Declares a procedure to execeute when a program starts
PROCEDURE Declares a procedure along with its formal parameters
RETURN Branches program control to the calling routine
RUN Executes an operating system command
SWITCH Executes one or more blocks of statements
TRY…CATCH Declares a control structure for error handling

OOP

CLASS Define a Class for Object Oriented Programming
CLASSDATA Define a CLASSDATA variable for a class (NOT for an Object!)
CLASS VAR Define a CLASS VAR variable for a class (NOT for an Object!)
DATA Alternate syntax for VAR: instance variable for the objects.
ENDCLASS End the declaration of a class.
ERROR HANDLER Designate a method as an error handler for the class
MESSAGE Route a method call to another Method
METHOD Declare a METHOD for a class in the class header
ON ERROR Designate a method as an error handler for the class
VAR Alternate syntax for VAR: instance variable for the objects.
WITH OBJECT Identifies an object to receive multiple messages

One response to “Harbour Statements

  1. Pingback: Harbour RG Summary | Viva Clipper !

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s