PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Exchange table
  • Redefining currencies
  • Initializing the reference currency
  • New currencies
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
Adds or modifies the characteristics of a currency in the exchange table of currencies.
WEBDEV - Server code This addition or this modification will be taken into account for the entire project (until the next call to eInitCurrency).
WEBDEV - Browser code This addition or this modification will be taken into account for the current page. To use the same characteristics in the rest of the site, eInitCurrency must be called again in the load code ("OnLoad") of all the pages that use functions for currency conversion.
Versions 18 and later
Universal Windows 10 App This function is now available in Windows Store apps mode.
New in version 18
Universal Windows 10 App This function is now available in Windows Store apps mode.
Universal Windows 10 App This function is now available in Windows Store apps mode.
Versions 21 and later
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
New in version 21
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Example
// Modify the caption of the French Franc
eInitCurrency(eFRF, "Franc", eExchangeRate(eFRF))
// Modify a user currency
// Use the CFA Franc
eInitCurrency(17, "CFA Franc", 655.96)
Syntax
eInitCurrency(<Currency> , <Currency Caption> , <Exchange Rate>)
<Currency>: Integer or constant
Currency number or constant associated with the currency (see the exchange table).
<Currency Caption>: Character string
Caption of the currency (returned by eCurrencyName).
<Exchange Rate>: Currency
Value of one Euro expressed in the relevant currency (value included between 0 and 2147). The exchange rate of a currency is returned by eExchangeRate.
Remarks

Exchange table

An exchange table is stored in memory. Each currency is associated with:
  • A currency number used to identify the currency by programming.
  • A constant used to identify the currency by programming.
  • A caption (up to 7 characters): this caption is displayed in the "Currency + Euro" control if the input mask allows it (the $ sign is indicated).
  • An exchange rate. This exchange rate corresponds to the exchange rate of the currency in relation to the Euro.
This exchange table is as follows:
Currency numberConstantCountryExchange RateDefault caption
0eEUREuro zone1EURO
1eFRFFrance6,55957F
2eITLItaly1936,27ITL
3eBEFBelgium40,3399BEF
4eLUFLuxembourg40,3399LUF
5eDEMGermany1,95583DEM
6eATSAustria13,7603ATS
8eESPSpain166,386ESP
9eIEPIreland0,787564IEP
10eNLGNetherlands2,20371NLG
11ePTEPortugal200,482PTE
14eGRDGreece340,750GRD
15eFIMFinland5,94573FIM
Currencies not taking part in the Euro
7eDKKDenmark0DKK
12eGBPGreat Britain0GBP
13eSEKSweden0SEK
16 - 25-0Free1 to Free10
26eCYPCyprus0CYP
27eCZKCzech Republic0CZK
28eEEKEstonia0EEK
29eHUFHungary0HUF
30eLTLLithuania0LTL
31eLVLLatvia0LVL
32eMTLMalta0MTL
33ePLNPoland0SCH
34eSITSlovenia0SIT
35eSKKSlovakia0SKK
The first currency (whose identifier is set to 0) is the currency used as reference for the conversions.
Caution: The currencies whose exchange rate is set to 0 will not be displayed in the popup menu of the "Currency + Euro" control.

Redefining currencies

When redefining currencies, we recommend that you keep the order of currencies defined in the exchange table. Indeed, the lists of currencies defined in the different editors are based on this order.
Therefore, if currency #3 (corresponding to the Belgium Franc) is redefined by programming to correspond to the Peseta, the window/page editor will still display the Belgium Franc in third position for currencies. However, at run time, the third currency will be the Peseta.

Initializing the reference currency

eInitCurrency cannot be used to initialize the reference currency (whose identifier is set to 0).

New currencies

If new currencies are participating in the Euro, eInitCurrency allows you to take these new currencies into account in your applications via the "User-defined currencies" (numbered from 16 to 25).
The use of these "User-defined currencies" enables you to access new currencies in the window editor and in the page editor (in "Display Currency" and "Stored Currency").
Components
WINDEVWEBDEV - Server codeReports and Queries wd230std.dll
Windows Mobile wp230std.dll
WEBDEV - Browser code WDJS.DLL
Linux wd230std.so
Minimum required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment