PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK

  • Additional currency
  • Various
  • Limits
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
..DisplayCurrency allows you to find out and modify the currency used when displaying and/or typing data in a "Currency + Euro" control.
Notes:
  • 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
// 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 name>..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 name>: Character string (with or without quotes)
Name of the "Currency + Euro" control.

Modifying the display currency used Hide the details

<Control name>..DisplayCurrency = <New currency>
<Control name>: Character string (with or without quotes)
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 by 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

Various

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

Limits

..DisplayCurrency is applied:
  • Reports and Queries when displaying a value in a calculated control or in a "Currency + Euro" item control (in a report). Reports and Queries when displaying a value in a "Currency + Euro" calculated control (in a report).
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment