读书人

PB汉语本前面加空格

发布时间: 2012-09-17 12:06:51 作者: rapoo

PB中文本前面加空格
在PB中,有一段文本如:伦敦奥运会。我想在伦敦奥运会前面加N个空格,我看显示的结果自己定义N的数值。

[解决办法]
space(n)+'伦敦奥运会'
[解决办法]

探讨
space(n)+'伦敦奥运会'

[解决办法]
探讨
引用:
space(n)+'伦敦奥运会'


函数space()就是用来填空格的,同意一楼的

[解决办法]
Description

Builds a string of the specified length whose value consists of spaces.

Syntax

Space ( n )

ArgumentDescription
nA long whose value is the length of the string you want filled with spaces. The maximum value is 2,147,483,647, which is the maximum size for strings.
Return value

String. Returns a string filled with n spaces if it succeeds and the empty string ("") if an error occurs. If n is null, Space returns null.

读书人网 >PB

热点推荐