Copy Method for LCNumeric

This method makes a copy of one LCNumeric, creating a new LCNumeric object.

Defined In

LCNumeric

Syntax

Set newNumeric = srcFirst. Copy

Parameters

Parameter

Description

srcNumeric

LCNumeric. The LCNumeric object that you want to copy.

Return Value

Value

Description

newNumeric

LCNumeric. The copy of the srcNumeric object.

Example

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

Example Output

The copy has a value of 12345.6789.