Copy Method for LCCurrency

This method makes a copy of an LCCurrency object.

Defined In

LCCurrency

Syntax

Set newCurrency = srcCurrency.Copy

Parameters

Parameter

Description

srcCurrency

LCCurrency. The source currency value to be copied.

Return Value

Value

Description

newCurrency

LCCurrency. The copy of the srcCurrency object.

Example

Option Public
Uselsx "*lsxlc"  
Sub Initialize
  Dim num1 As New LCCurrency //For LEI
  Dim num2 As LCCurrency
  num1.Value = 12345.6789
  Set num2 = num1.Copy
  Print "The copy has a value of " & num2.Text
End Sub

Example Output

The copy has a value of 12345.6789.