Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Foxlib v1.0 - <b>setdrive</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
SETDRIVE

Syntax:                 SETDRIVE

Use:                    To set a disk drive.

Parameters:             Drive letter (A=0, B=1, C=2,..., Z=25).

Returns:                The first character in the sending parameter will
                        have a "Y" if the drive number was set, a "N" if the
                        drive number was not set.  If you did not pass the
                        parameter correctly (e.g. FOXLIB = "/"), your
                        sending parameter will be unchanged.

Example:                . load c:\FOXLIB\setdrive
                        . FOXLIB = "B"
                        . call setdrive with FOXLIB
                        . ?substr(FOXLIB,1,1) = "Y"
                        .T.
                        . rele modu setdrive

                        From this example, the drive was set to B.

See Also: GETDRIVE

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