Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- CA-Clipper 5.3 . Guide To CA-Clipper - <b>space()</b> http://www.X-Hacker.org [<<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()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson