Variables in which a currency amount is stored should be declared as currency variables.
When using currency characteristics, the advantage is that the amounts can be automatically converted into another currency. To do this, the required currencies with the corresponding currency factors must be defined in the properties of the knowledge base.
In the properties for a variable of the Type Currency, it is possible to specify which factors the currencies should be calculated on or whether each individual currency value should be used separately.
In addition, you can set a positive as wel as a negative currency format for each currency in the properties of the knowledge base.
In addition, the variable can take the value NoValue. If the "Initialize with default value" switch is set for class variables, the value is set to 0 when NoValue is used to assign them.
Variables of Type Currency are defined locally in functions as hereinafter (examples):
Dim Price As Currency
Attribute Properties and Functions:
Standard-Attributes:
Standard-Events:
Special Attributes: