xHarbour Reference Documentation > Function Reference |
Returns a string consisting of blank spaces.
Space( <nCount> ) --> cSpaces
The function returns a character string consisting of <nCount> blank spaces (Chr(32)). If <nCount> is smaller than 1, the return value is an empty string ("").
Space() is a specialized form of Replicate() that replicates the blank space (chr(32)) <nCount> times and returns the result string. Space() is commonly used to initialize variables with a character string buffer that has no content but blank spaces.
See also: | PadC() | PadL() | PadR(), Replicate() |
Category: | Character functions |
Source: | rtl\space.c |
LIB: | xhb.lib |
DLL: | xhbdll.dll |
http://www.xHarbour.com