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