在PB中,有一段文本如:伦敦奥运会。我想在伦敦奥运会前面加N个空格,我看显示的结果自己定义N的数值。
------解决方案--------------------
space(n)+'伦敦奥运会'
------解决方案--------------------
------解决方案--------------------
------解决方案--------------------
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.