Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- The Guide To Clipper - <b>set delimiters</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
SET DELIMITERS


Syntax:     SET DELIMITERS on/OFF/(<expL>)

            SET DELIMITERS TO [<expC>/DEFAULT]

Purpose:    To define the character(s) used to delimit GETs.

Options:    Toggle: To display delimiters, SET DELIMITERS ON.

            To: The TO <expC> clause defines a one or two character
            delimiter.  Specifying one character places the same
            delimiter character as both the beginning and ending
            delimiters.  Specifying two characters places the first
            character as the beginning delimiter and the second as the
            ending delimiter.  Specifying DEFAULT or no delimiters SETs
            the delimiters back to the default value of colons.

Usage:      A space may be used in the character expression to suppress
            either the right or left (or both) delimiters.

Library:    CLIPPER.LIB


----------------------------------- Examples -------------------------------

   This example SETs DELIMITERS TO the character pair "[]":

   mvar = SPACE(5)
   SET DELIMITERS TO "[]"
   SET DELIMITERS ON

   @ 1, 0 SAY "Enter" GET mvar

   READ

   Result:  Enter [     ]


   This second example SETs the DELIMITER preceding the GET to a colon
   and the DELIMITER that follows the GET to a space:

   mvar = SPACE(5)
   SET DELIMITERS TO ": "
   SET DELIMITERS ON

   @ 1, 0 SAY "Enter" GET mvar

   READ


   Result:  Enter :


See Also: @...SAY...GET

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