当前位置: 代码迷 >> PB >> PB汉语本前面加空格
  详细解决方案

PB汉语本前面加空格

热度:56   发布时间:2016-04-29 08:03:03.0
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 )

Argument Description
n A 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.
  相关解决方案