このメソッドは、LCNumeric をコピーして新しい LCNumeric オブジェクトを作成します。
LCNumeric
Set newNumeric = srcFirst. Copy
パラメータ |
説明 |
---|---|
srcNumeric |
LCNumeric。コピーする LCNumeric オブジェクトです。 |
値 |
説明 |
---|---|
newNumeric |
LCNumeric。srcNumeric オブジェクトのコピーです。 |
Option Public
Uselsx "*lsxlc"
Sub Initialize
Dim num1 As New LCNumeric
Dim num2 As LCNumeric
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.