在VB中,Space函數用于返回一個由指定數量的空格字符組成的字符串。
語法: Space(number)
參數:
示例:
Dim str As String str = Space(5) ' 返回包含5個空格字符的字符串 MsgBox str
輸出結果為:
注意: