VBScriptのスペース機能
space関数は、指定した数のスペースからなる文字列を返します。
文法
Space(number)
参数 | 描述 |
---|---|
number | 必需。字符串中的空格数量。 |
例1
Dim txt
txt=Space(10)
document.write(txt)
Output:
" "
txt=Space(10)
document.write(txt)
Output:
" "
完全なVBScriptのリファレンス
space関数は、指定した数のスペースからなる文字列を返します。
参数 | 描述 |
---|---|
number | 必需。字符串中的空格数量。 |