ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage properties / Properties associated with windows, pages and controls
  • Additional currency
  • 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 MemoryCurrency property gets and sets the currency used when manipulating a "Currency + Euro" control programmatically.
Remarks:
  • The currency value entered in a "Currency + Euro" Edit control (or table column) is entered in the currency defined by the DisplayCurrency property.
  • If the display currency and the memory currency are not identical, the conversion is automatically performed when saving the associated record.
Example
WindowsUniversal Windows 10 AppJava
// Changes the memory currency used by EDT_Edit1
EDT_Edit1.MemoryCurrency = eEUR   // Stored in Euros
EDT_Edit1 = 10   // Euro =>  Displays "65.60F"
EDT_Edit1.MemoryCurrency = eFRF    // Stored in Francs
EDT_Edit1 = 10   // Francs => displays "10.00F"
Syntax

Finding out the memory currency used Hide the details

<Currency used> = <Control used>.MemoryCurrency
<Currency used>: Integer constant
Currency currently used as memory 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
<Control used>: Control name
Name of the "Currency + Euro" control.

Modifying the memory currency used Hide the details

<Control used>.MemoryCurrency = <New currency>
<Control used>: Control name
Name of the "Currency + Euro" control.
<New currency>: Integer constant
New currency that will be used for the memory 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

Limitations

The MemoryCurrency property applies when manipulating the following "Currency + Euro" controls programmantically:
  • WINDEVUniversal Windows 10 App calculated controls and item controls found in the reports.
  • WINDEVUniversal Windows 10 App "Currency + Euro" edit controls.
  • WINDEVUniversal Windows 10 App columns found in the "Currency + Euro" Table controls.
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/17/2024

Send a report | Local help