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 is used to get and change 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 during the backup is defined by MemoryCurrency.
  • If the displayed currency differs from the stored currency, the conversion is automatically performed during the backup.
Example
WindowsUniversal Windows 10 AppAndroidJava
// 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
eEUREuro zone1
eFRFFrance6.55957
eITLItaly1936,27
eBEFBelgium40,3399
eLUFLuxembourg40,3399
eDEMGermany1,95583
eATSAustria13,7603
eESPSpain166,386
eIEPIreland0,787564
eNLGNetherlands2,20371
ePTEPortugal200,482
eGRDGreece340,750
eFIMFinland5,94573
Currencies not taking part in the Euro
eDKKDenmark0
eGBPGreat Britain0
eSEKSweden0
Free10
Free20
Free30
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 applies:
  • WINDEVWEBDEV - Server codeReports and QueriesUniversal Windows 10 AppAndroidiPhone/iPadMac Catalyst when displaying a value in a "Currency + Euro" calculated control (in a report).
  • WINDEVUniversal Windows 10 AppAndroid when displaying and entering a value in a "Currency + Euro" edit control (in a window).
  • WINDEVUniversal Windows 10 App when displaying and entering a value in a column found in a "Currency + Euro" Table control (in a window).
  • WEBDEV - Server code when displaying and/or typing data in the "Currency + Euro" controls (edit control, formatted display control, column of a Table control, 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/26/2022

Send a report | Local help