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 Library for Clipper - <b>l_config()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
                                 L_CONFIG()


Syntax:        L_CONFIG(<expN> [,<expC1>] [,<expC2>])


Purpose:       To return selected information from the CONFIG.SYS
               file.


Arguments:     <expN> is the mode for using the function.

                1 the function will search for BREAK.
                2 the function will search for BUFFERS.
                3 the function will search for COUNTRY.
                4 the function will search for FCBS.
                5 the function will search for FILES.
                6 the function will search for LASTDRIVE.
                7 the function will search for SHELL.
                8 the function will search for STACKS.

               10 the function will search for DEVICE.
               11 the function will search for a specified DEVICE.
               12 the function will search for all DEVICES.

               <expC> is used only with <expN> = 11, as the name of
               the required device.


Returns:       The line from CONFIG.SYS containing the specified
               information, or all lines containing the word DEVICE if
               <expN> = 12, or a "Not Found" message if CONFIG.SYS


               does not contain the information, or a DOS error number
               if CONFIG.SYS cannot be found, or accessed.


Usage:         To check on the settings in CONFIG.SYS.


Examples:      ? L_CONFIG(3)  && Result: Found: COUNTRY=044

               ? L_CONFIG(11,"MOUSE")     && Result: Found: DEVICE=MOUSE.SYS

               ? L_CONFIG(11,"ANSI")      && Result: Not found: ANSI


Notes:         The case of the input string or contents of CONFIG.SYS
               will not affect the function.


Language:      Clipper

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