IDataFunctions_4_0::get_CurrencySymbol, put_CurrencySymbol Property [C++]

The CurrencySymbol property is a read/write string Variant that stores the currency symbol to use if the currency symbol parameter is not specified in the ConvertStringToCurrency and LocalizeCurrency methods. The default value is the system default currency symbol.

Definition

[C++]

Get method:

HRESULT IDataFunctions_4_0::get_CurrencySymbol(VARIANT*CurrencySymbol);

Put method:

HRESULT IDataFunctions_4_0::put_CurrencySymbol(VARIANTCurrencySymbol);

[Visual Basic]

Property CurrencySymbol As Variant

Parameters

  • CurrencySymbol[C++]
    [in] When putting the property, a string VARIANT that contains the currency symbol.
    [out, retval] When getting the property, a pointer to a string VARIANT used to return the currency symbol.

[Visual Basic] None.

[C++]

Return Values

[C++] These methods return an HRESULT indicating whether they completed successfully. See the Error Values section for more details.

Error Values

[C++] These methods return S_OK (0x00000000) to indicate success and standard COM HRESULT error values to indicate failure. For more information about standard COM errors, see Standard COM Errors. Additional information may be available using the global Err object, which can be accessed using the API function GetErrorInfo. In particular, the GetDescription method of the IErrorInfo interface may return a text description of the error.

[Visual Basic] This property sets the Number property of the global Err object to S_OK (&H00000000) to indicate success and to standard COM error values to indicate failure. For more information about standard COM errors, see Standard COM Errors. Additional information may be available using the global Err object. In particular, the Description property may contain a text description of the error.

[C++]

Remarks

When getting the property, the CurrencySymbol parameter contains valid data only if the property is accessed successfully.

For more information about memory ownership issues related to COM property and method parameters, see Managing COM Parameter Memory.

See Also

[C++]DataFunctions Object

[C++]IDataFunctions_4_0::ConvertStringToCurrency

[C++]IDataFunctions_4_0::LocalizeCurrency

[Visual Basic]DataFunctions Object

[Visual Basic]DataFunctions.ConvertStringToCurrency

[Visual Basic]DataFunctions.LocalizeCurrency

Copyright © 2005 Microsoft Corporation.
All rights reserved.