首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > PB >

PB汉语本前面加空格

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

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.

热点排行