[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 SPACE()
 Return a string of spaces
------------------------------------------------------------------------------
 Syntax

     SPACE(<nCount>) --> cSpaces

 Arguments

     <nCount> is the number of spaces to be returned, up to a maximum of
     65,535 (64 K).

 Returns

     SPACE() returns a character string.  If <nCount> is zero, SPACE()
     returns a null string ("").

 Description

     SPACE() is a character function that returns a specified number of
     spaces.  It is the same as REPLICATE("", <nCount>).  SPACE() can
     initialize a character variable before associating it with a GET.
     SPACE() can also pad strings with leading or trailing spaces.  Note,
     however, that the PADC(), PADL(), and PADR() functions are more
     effective for this purpose.

 Examples

     .  This example uses SPACE() to initialize a variable for data
        input:

        USE Customer NEW
        MEMVAR->Name = SPACE(LEN(Customer->Name))
        @ 10,10 SAY "Customer Name" GET MEMVAR->Name
        READ

 Files   Library is CLIPPER.LIB.


See Also: PAD() REPLICATE()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson