TextListFetch Method for LCStream
This method fetches a text list from a text list stream object and assigns it to another stream object.
The stream must be in the LCSTREAMFMT_TEXT_LIST format or an LCTYPE_TEXT value.
Defined In
LCStream
Syntax
Call lcStream. TextListFetch (index, format, stream)
Parameters
Parameter |
Description |
---|---|
index |
Long, in the range 1 to lcStream.Valuecount. The index position of the value to fetch. If the index is one, this method will accept a text stream as a single-entry text list. |
value |
String, output. The text value at position index in the list. |
Example
Option Public
Uselsx "*lsxlc"
Sub Initialize
Dim textlist As New LCStream (0, 0, LCSTREAMFMT_TEXT_LIST)
Dim text As String
textlist.text = "red, orange, yellow, green, blue, indigo, violet"
Call textlist.TextListFetch (3, text)
Print "The 3rd string in the text list is " & text
End Sub
Example Output
The 3rd string in the text list is yellow