このメソッドは、LCCurrency オブジェクトのコピーを作成します。
LCCurrency
Set newCurrency = srcCurrency.Copy
パラメータ |
説明 |
---|---|
srcCurrency |
LCCurrency。コピー元の Currency 値。 |
値 |
説明 |
---|---|
newCurrency |
LCCurrency。srcCurrency オブジェクトのコピー。 |
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
The copy has a value of 12345.6789.