Copy Method for LCStream

This method copies the value of one LCStream object to another. The actual data are copied, not just referenced.

Defined In

LCStream

Syntax

Set newStream = lcStream. Copy

Parameters

Parameter

Description

lcStream

LCStream. Source stream to be copied.

Return Value

Value

Description

newStream

LCStream. The copy of the original stream.

Example

Option Public
Uselsx "*lsxlc" 
Sub Initialize
  Dim msg As New LCStream
  Dim newmsg As LCstream
  msg.Text = "Peter Pan"
  Set newmsg = msg.Copy
  Print "The original msg is " & msg.Text
  msg.Text = "Tinkerbell"
  Print "The new msg is " & newmsg.Text
End Sub

Example Output

The original msg is Peter Pan.
The new msg is Peter Pan.