Trim Method for LCStream
This method trims trailing spaces from text streams. If the stream is not a text format or if the stream has the flag LCSTREAM_NO_TRIM set, then this method will perform no action.
Defined In
LCStream
Syntax
lcStream . Trim
Example
Option Public
Uselsx "*lsxlc"
Sub Initialize
Dim msg As New LCStream
msg.Text = " this has space at the start and the end "
msg.Trim ' trim trailing spaces (not leading ones)
Print "The msg is *" & msg.Text & "*".
End Sub
Example Output
The msg is * this has space at the start and the end*.