Currency_GetNativeSymbol()

Examples


The Currency_GetNativeSymbol() function returns a platform-specific string displaying the dollar, pound, yen or Euro currency symbol.

Syntax

Currency_GetNativeSymbol(symbol)

Parameters

symbol An integer value specifying which currency symbol will be returned. Use one of the following constants for this parameter:

[spacer]

Constant

Description

DEX_DOLLAR_SYM

The dollar symbol ($)

DEX_POUND_SYM

The pound symbol (£)

DEX_YEN_SYM

The yen symbol (¥)

DEX_EURO_SYM

The Euro symbol


Return value

String

Comments

The various currency symbols are platform-specific. This function allows your application to always retrieve the appropriate symbol, regardless of which operating system is being used.

Currently, the Euro symbol is supported only on Windows 2000 and Windows 98. It is also supported on Windows NT 4.0 and Windows 95 if the appropriate patch from Microsoft is installed. If you don’t have the patch installed, a box character is returned.

For platforms that cannot display the Euro symbol, the string EUR is returned.


Documentation Feedback