Share via


EuroDisplay.Initialize

Ee798369.c++_on(en-US,CS.10).gifEe798369.vb_off(en-US,CS.10).gif

Use this method to initialize the object with the specified alternate currency symbol, base currency symbol, alternate locale identifier, base locale identifier, and conversion rate.

Definition

Sub Initialize(szBaseCurr As String,lBaseLCID As Long,szAltCurr As String,lAltLCID As Long,flEuroConvRate As Double)

Parameters

szBaseCurr

A String that contains the base currency symbol string.

lBaseLCID

A Long that contains the base locale identifier.

szAltCurr

A String that contains the alternate currency symbol string.

lAltLCID

A Long that contains the alternate locale identifier.

flEuroConvRate

A Double (8-byte floating point number) that contains the rate at which to convert the base currency into the alternate currency. For example, if the base currency is Swiss Francs which are exchanged at a rate of 1 SF = 2.1 Euros, and the alternate currency is Euro then this parameter will have a value of 2.1.

Error Values

This method 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.

Remarks

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

Example

' oEuroDisp is a Commerce.EuroDisplay object
' In this example, the Base Currency symbol string
' is "$" and the Base locale identifier is 1033; the Alt
' Currency symbol string is "DM"; the Base locale identifier
'  is 1037, and the conversion rate is $ 1 = 2.3 DM.

oEuroDisp.Initialize"$", 1033, "DM", 1037, 2.3

See Also

EuroDisplay Object


All rights reserved.