このメソッドは、LCStream オブジェクトの値を別のオブジェクトにコピーします。データは単に参照されるのではなく、実際にコピーされます。
LCStream
Set newStream = lcStream. Copy
パラメータ |
説明 |
---|---|
lcStream |
LCStream。コピーするソースストリームです。 |
値 |
説明 |
---|---|
newStream |
LCStream。元のストリームのコピーです。 |
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
The original msg is Peter Pan.
The new msg is Peter Pan.