ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage properties / Properties associated with windows, pages and controls
  • Additional currency
  • Miscellaneous
  • Limitations
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
The DisplayCurrency property gets and sets the currency used when entering or displaying values in a "Currency + Euro" control.
Remarks:
  • The displayed currency can differ from the currency returned to the program or saved in the corresponding HFSQL data file. The currency used to save the value is defined by the MemoryCurrency property.
  • If the displayed currency differs from the stored currency, the conversion is automatically performed during the backup.
Example
Windows
// Modify the display currency in the EDT_Edit1 control
EDT_Edit1.DisplayCurrency = eITL    // Italian Lira
Syntax

Finding out the display currency used Hide the details

<Currency used> = <Control used>.DisplayCurrency
<Currency used>: Integer constant
Currency currently used as display currency.
ConstantCountryExchange rate
eEUR
Euro zone
1
eFRF
France
6,55957
eITL
Italy
1936,27
eBEF
Belgium
40,3399
eLUF
Luxembourg
40,3399
eDEM
Germany
1,95583
eATS
Austria
13,7603
eESP
Spain
166,386
eIEP
Ireland
0,787564
eNLG
Netherlands
2,20371
ePTE
Portugal
200,482
eGRD
Greece
340,750
eFIM
Finland
5,94573
Currencies not taking part in the Euro
eDKK
Denmark
0
eGBP
Great Britain
0
eSEK
Sweden
0
Free1
0
Free2
0
Free3
0
Free4
<Control used>: Control name
Name of the "Currency + Euro" control.

Modifying the display currency used Hide the details

<Control used>.DisplayCurrency = <New currency>
<Control used>: Control name
Name of the "Currency + Euro" control.
<New currency>: Integer constant
New currency that will be used as display currency.
ConstantCountryExchange rate
eEUR
Euro zone
1
eFRF
France
6,55957
eITL
Italy
1936,27
eBEF
Belgium
40,3399
eLUF
Luxembourg
40,3399
eDEM
Germany
1,95583
eATS
Austria
13,7603
eESP
Spain
166,386
eIEP
Ireland
0,787564
eNLG
Netherlands
2,20371
ePTE
Portugal
200,482
eGRD
Greece
340,750
eFIM
Finland
5,94573
Currencies not taking part in the Euro
eDKK
Denmark
0
eGBP
Great Britain
0
eSEK
Sweden
0
Free1
0
Free2
0
Free3
0
Free4
Remarks

Additional currency

You also have the ability to define custom currencies: they allow you to choose an additional currency, created through programming with eInitCurrency. To choose one of these currencies, use the values from 16 to 19:
  • 16: Custom currency #1
  • 17: Custom currency #2
  • 18: Custom currency #3
  • 19: Custom currency #4

Miscellaneous

When modifying the display currency of a control, the value found in the control is automatically converted.

Limitations

The DisplayCurrency property is applied:
  • WEBDEV - Server code to display a value in a "Currency + Euro" calculated control (in a report).
  • WEBDEV - Server code to display and/or enter values in "Currency + Euro" controls (Edit control, Formatted Display control, Table control column, attribute of a Looper control).
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/29/2024

Send a report | Local help