PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
  • Modifying the default stored currency (syntax 1)
  • Exchange table
  • Equivalence
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
eDefaultMemCurrency (Function)
In french: eDeviseMemParDéfaut
Identifies or modifies the stored currency used by default.
Remarks:
  • eDefaultMemCurrency defines the stored currency for the "Currency + Euro" controls whose stored currency corresponds to "Default currency" in the window editor.
  • The stored currency used by default is the Euro.
Example
// Modify the stored currency used by default
ResDefaultStoredCurrency = eDefaultMemCurrency(eDEM)
// The currency stored used by default is the German Mark
Syntax

Modifying the stored currency used by default Hide the details

<Result> = eDefaultMemCurrency(<New currency>)
<Result>: Integer
Identifier of the stored currency used by default before the modification.
<New currency>: Integer or constant
Identifier or constant associated with the new currency stored by default.
This currency will be taken into account:

    Identifying the stored currency used by default Hide the details

    <Result> = eDefaultMemCurrency()
    <Result>: Integer
    Identifier of the stored currency used by default.
    Remarks

    Modifying the default stored currency (syntax 1)

    In most cases, eDefaultMemCurrency must be used in the initialization code of the project. The stored currency should not be modified several times in the same application.

    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 - 250Free1 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.
    In this exchange table, you have the ability to:
    • add new currencies by modifying the custom currencies if necessary ("user-defined currencies" from 16 to 25) with eInitCurrency,
    • specify the exchange rate of each currency with eInitCurrency.
    Caution: The currencies whose exchange rate is set to 0 will not be displayed in the popup menu of the "Currency + Euro" control. To define the exchange rate of these currencies, you must redefine them in the initialization code of the project with eInitCurrency.

    Equivalence

    eDefaultMemCurrency is equivalent to ..MemoryCurrency (<Control name>..MemoryCurrency).
    Component : wd250std.dll
    Minimum version required
    • Version 9
    This page is also available for…
    Comments
    Click [Add] to post a comment