- Overview
- Stored currency
- Overview
- Configuring the stored currency
- Input/Display currency
- Overview
- Advanced configuration
- Configuring the display currency
- Tooltip
- Overview
- Conversion rules in the tooltip
- Configuring the display of tooltip
- Dual display
- Overview
- Operating mode of dual display for an edit control
- Operating mode of dual display for a table column
- Advanced configuration
- Configuring the dual display
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: 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. 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.
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.
Related Examples:
|
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
|
This page is also available for…
|
|
|
|