C5_SPACE

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



Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.