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


Syntax:        L_CHDRIVE(<expC>)


Purpose:       To select the specified disk to be current or default
               drive without executing another copy of the command
               line interpreter.

Arguments:     <expC> is the Drive letter of the drive to be made
               current.


Returns:       -1 = Syntax error.
                0 = Successful


Examples:      * change drives
               drive = "W"                    && possible network drive
               old_drive = L_GETDRIVE()

               IF L_ISVALID(drive)            && if a valid drive
                  L_CHDRIVE(drive)            && change drives

               < some code here >

                  L_CHDRIVE(old_drive)        && reset old drive
               ENDIF


Language:      Assembler

See Also: L_ISFIXED() L_FLOPPIES() L_NUMDRIVE() L_ISDRIVE()

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