LogiView

Allocation

     
Allocation is used to transfer the result of an expression to a variable (or array element) of the same type. '=' is used for allocation.

Example:

VALUE = 45.0-sin(GRAD)

In numerical expression, the following operators are valid:

Operator Description Example:
+ addition F1 = 6 + 3.2
- subtraction F1 = 93 -12
* multiplication F1 = 5 * 7
/ division F1 = 20.8 / 4
^ exponent F1 = 3.0 ^ 2 (= 8)
div integer result of a division I1 = 7 div 3 (= 2)
mod fractional part of a division I1 = 7 mod 3 (= 1)

 

LGV string variables with an initialization value of " " will not be called up in sub procedures again.

Example:

Declaration of Variables:

Var_1 string, no database access

Var_2 string, initial value " ", database access " T_DOC_DAT..."

In DT:

Var_1=Var_2

No database access is performed during the allocation.

In order to change this, the " " initialization value must be deleted.