<<

Contents

Search

>>

 

Commands of the programming language

 

The programming language contains functions, instructions and variables.

 

Functions and instructions are also called commands.

 

The difference between a function and an instruction is that a function gives a result while an instruction does not. Functions can therefore only stand on the right side of an  assignment or they can be a function argument (parameter).

 

Example:

MONTH% = GET_MONTH(NUMDATE(DATEG8$)) /* functions GET_MONTH, NUMDATE, variable DATEG8$

 

REPORT #100 /* instruction REPORT

 

The variables of the programming language mostly begin with EBUS_ . They contain information (e.g. key ESC$) or they help to control the program run. Those variable that only contain information cannot be changed.

 

In the following paragraphs the instructions, functions and variables of the programming language are described in alphabetical order.

 

The following rules apply to the used syntax:

 

An expression in square brackets [ ] is optional, which means the expression can exist or not. Three dots behind square brackets [ ]… mean: The expression in square brackets can appear as often as required (or not at all).

 

With the specification of the single instructions and functions the possible parameters are written in the form <XXXXXX>. In the table below the meaning of the most important parameters is explained, the others are explained with the respective instruction.

 

 

Parameter

Meaning/Structure

Examples

<NAME>

Sequence of letters, numbers and the character <_> (underline). A name must always begin with a letter.

I
H_1
ZA_T

 

<NUMBER>

Integer

12

 

<STRING>

String

"Hallo"

 

<VARNAME>

Name of variable: <NAME> or <NAME>$

H$
KL
H_1$

 

<NUM-VARIABLE>

Numeric variable: <NAME> or <NAME>(<INDICES>)

I1
DAT_A
FELD(3,2)
TA(I)

 

<INTEGER-VARIABLE>

Integer variable: <NAME>%

I%

 

<STRING-VARIABLE>

String variable: <NAME>$ or <NAME>$(<INDICES>)

H_1$
F$
FE$(3 + 1,7)

 

<VARIABLE>

<NUM-VARIABLE> or

<INTEGER-VARIABLE> or

<STRING-VARIABLE>

 

K
T$(5+Z,6)

 

<VARIABLE_NS>

<NUM-VARIABLE> or <STRING-VARIABLE>

 

 

<NUM-EXPRESSION>

Numeric expression

(H(4) + 3 * SIN(T)) / 6

 

<STRING-EXPRESSION>

String expression

H$ + "XYZ"

 

<EXPRESSION>

<NUM-EXPRESSION> or  <STRING- EXPRESSION>

4*F(3) + I
H$ + Y$(7)

 

<INDICES>

<NUM- EXPRESSION> [,<NUM- EXPRESSION>]...

1
K%
3,H + 45,12

 

<INDEX FILE NAME>

Name of an Index File: The name must begin with a letter and may only consist of letters and numbers.

 

CUSTOMER

<INDEX FILE FIELD>

Field name of an Index File: <INDEX FILE NAME>.<FIELDNAME>

CUSTOMER.NAME$

 

<INDEX FILE>

<INDEX FILE NAME> or <STRING- EXPRESSION>

CUSTOMER
CUST$

 

<MACRONAME>

Name of macro or  <STRING- EXPRESSION>

PROG.READ

"PROG.READ"

 

<MASK FIELD>

#<MASK NUMBER>.#<MASK FIELD VARIABLE>

                                    [,<Radiobutton-Character>]

or #.<MASK FIELD NUMBER>

or #<MASK NUMBER>.<MASK FIELD NUMBER>

 

<MASK NUMMER> = <NUMBER>

<MASK FIELD NUMBER> = <NUMBER>

<MASK FIELD VARIABLE> = <VARIABLE> or                                                                               <INDEX FILE FIELD>

 

#5.#EDIT$

#5.3

#5.#CUSTOMER.NAME$

 

<LABEL>

<NAME>:

 

N1:

<LOG-EXPRESSION>

Logical expression

H% <> 0 AND K$ = ""