xHarbour Reference Documentation > Function Reference xHarbour Developers Network  

Space()

Returns a string consisting of blank spaces.

Syntax

Space( <nCount> ) --> cSpaces

Arguments

<nCount>
This is a numeric value specifying the number of blank spaces to return.

Return

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 ("").

Description

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.

Info

See also:PadC() | PadL() | PadR(), Replicate()
Category: Character functions
Source:rtl\space.c
LIB:xhb.lib
DLL:xhbdll.dll


Copyright © 2006-2007 xHarbour.com Inc. All rights reserved.
http://www.xHarbour.com
Created by docmaker.exe