Append Method for LCStream

This method appends one stream to another to yield a third LCStream object (the destination object) containing the data from both.

The destination object must already have been assigned. The current value of the destination object, if any, will be overwritten.

Defined In

LCStream

Syntax

Call newStream. Append (stream1, stream2)

Parameters

Parameter

Description

stream1

LCStream. The stream to which you want to append. The newStream will have this stream's format.

stream2

LCStream. The stream to append to stream1. If this stream is a different format than stream1, it will first be converted to the format of stream1.

Example

Option Public
Option Explicit
Uselsx "*lsxlc" 
Sub Initialize
  Dim stream1 As New LCStream (64, , LCSTREAMFMT_ASCII)
  Dim stream2 As New LCStream (64, , LCSTREAMFMT_ASCII)
  Dim together As New LCStream (64, , LCSTREAMFMT_ASCII)
  stream1.Text = "The quick brown fox "
  stream2.Text = "jumped over the lazy dog."
  Call together.Append (stream1, stream2)
  Print "The combined stream is " & together.Text
End Sub

Example Output

The combined stream is The quick brown fox jumped over the lazy dog.