Easy to Create, Easy to Change - Easy to use!

Support::

:= (assignment operator)



Parameters


Returns/Result


Examples


Reference

:= (assignment operator)

Type

Operator Symbol

Purpose

The assignment operator symbol is used whenever the value of a variable or field is assigned or modified.

Syntax

FIELDNAME : = ASSIGNED VALUE .

assign global|temp VARIABLE NAME : = ASSIGNED VALUE .

 

Example 1

LAST NAME : = data-entry LAST NAME .

 

This statement tells DataEase to modify the LAST NAME field by copying the value entered in the LAST NAME field on the Data-entry form.

 

Example 2

assign temp DISCOUNT : = RESERVATIONS TOTAL DUE * 0. 15.

 

This script statement assigns a value to a temporary variable named DISCOUNT. The value assigned to the variable is 15% of the TOTAL DUE value in the current RESERVATIONS record.

 

Note: Do not confuse this symbol with the equal (=) sign which is used to compare one value to another.

See Also


On the forum about := (assignment operator)

On the blog about := (assignment operator)