TextListInsert Method for LCStream

This method inserts text or a text list into a text list LCStream object.

The stream must be in the LCSTREAMFMT_TEXT_LIST format.

Defined In

LCStream

Syntax

Call lcStream. TextListInsert (index, stream)

Parameters

Parameter

Description

index

Long, in the range 1 to lcStream.Valuecount + 1. The position at which to insert the text string.

stream

String. The text string to insert.

Example

Option Public
Uselsx "*lsxlc" 
Sub Initialize
  Dim textlist As New LCStream (0, 0, LCSTREAMFMT_TEXT_LIST)
  textlist.text = "red, orange, yellow, green, blue, indigo, violet"
  Call textlist.TextListInsert (3, "black")
  Print "The new value of the text list is " & textlist.text
End Sub

Example Output

The new value of the text list is red, orange, black, yellow, green, blue, indigo, violet