ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / Euro functions
  • Overview
  • Stored currency
  • Overview
  • Configuring the stored currency
  • Input/Display currency
  • Overview
  • Configuring the display currency
  • Tooltip
  • Dual display
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Currency + Euro type
Overview
In a WINDEV application or in a WEBDEV site, the Euro must be managed in all the controls used to enter or display currency values:
All these controls can be defined as "Currency + Euro" controls.
The characteristics specific to this type of control are as follows:
Stored currency

Overview

The stored currency corresponds to the currency of the value returned to the program or transferred into an item. The stored currency is used for all the calculations that will be performed in the application.
You have the ability to specify the number of decimal places taken into account by this stored currency (5 by default). The value found in the stored currency will be automatically rounded according to the number of decimal places.
The results can be displayed in any currency selected in "Input/Display currency". The conversion will be automatically performed.
The stored currency associated with a control can be modified through programming with MemoryCurrency.
Caution: To avoid errors, we recommend that you use the same number of decimal places:
  • in the display mask and in the input mask of the control,
  • in the rounding of the stored currency.

Configuring the stored currency

The stored currency is chosen in the window editor or in the report editor from a list displaying the different currencies. This list contains:
  • the number identifying the currency,
  • the abbreviation of the currency according to the ISO standard,
  • the name of the country corresponding to this currency.
The last four currencies of this list are user-defined currencies: they allow choosing an additional currency created through programming with eInitCurrency.
Remark: The <Default> currency corresponds to the Euro. This default currency can be identified and changed using eDefaultMemCurrency.
Input/Display currency

Overview

The display currency corresponds the currency in which the value of the control is displayed or entered. The display currency is displayed according to the input mask specified for the control.
If the displayed currency differs from the stored currency, the conversion is automatically performed between the display currency and the stored currency. Using a display currency that differs from the stored currency allows you to store a single currency in the data file: the stored value can be displayed in any currency.
Caution: To avoid errors, we recommend that you use the same number of decimal places:
  • in the display mask and in the input mask of the control,
  • in the rounding of the stored currency.
The displayed currency can be changed using the DisplayCurrency property.

Configuring the display currency

The displayed currency is chosen in the window editor from a list displaying the different currencies. This list contains:
  • the number identifying the currency,
  • the abbreviation of the currency according to the ISO standard,
  • the name of the country corresponding to this currency.
The last four currencies of this list are user-defined currencies: they allow choosing an additional currency created through programming with eInitCurrency.
Remarks:
  • The <Default> currency corresponds to the Euro. This default currency can be identified and changed using eDefaultViewCurrency.
  • The caption of the currency will be displayed beside the value if the $ sign is specified in the display mask. For example: "$999.99" will display for example in Francs: F 945.00.
Tooltip
Dual display
Related Examples:
Euro calculator Unit examples (WINDEV): Euro calculator
[ + ] Handling the European currencies in relation to the Euro:
- Convert an amount into Euros
- Convert an amount from Euros into another national currency
- Perform operations on currency values
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 06/22/2023

Send a report | Local help