このメソッドは、テキストストリームの末尾のスペースを削除します。ストリームがテキスト形式でない場合、またはストリームに LCSTREAM_NO_TRIM フラグが設定されている場合は、このメソッドは何も実行しません。
LCStream
lcStream . Trim
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
The msg is * this has space at the start and the end*.