LTrim 函数可删除字符串左侧的空格。
LTrim
Len(string|varname)
Module Module1 Sub Main() dim txt txt=" This is a beautiful day! " Console.WriteLine(LTrim(txt)) End SubEnd Module
Module Module1
Sub Main()
dim txt
txt=" This is a beautiful day! "
Console.WriteLine(LTrim(txt))
End Sub
End Module
输出:
"This is a beautiful day! "