IBM Lotus Symphony
|
返回由指定数量的空格组成的字符串。
Space (n As Long)
字符串
n:用于定义字符串中空格数量的数字表达式。n 的最大允许值为 65535。
Sub ExampleSpace
Dim sText As String,sOut As String
DIm iLen As Integer
iLen = 10
sText = "Las Vegas"
sOut = sText & Space(iLen) & sText & Chr(13) &_
sText & Space(iLen*2) & sText & Chr(13) &_
sText & Space(iLen*4) & sText & Chr(13)
msgBox sOut,0,"Info:"
End Sub