Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Novlib 3.30 Online Reference - <b> drvcurrentget() / drvcurrentset()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 DrvCurrentGet() / DrvCurrentSet()
------------------------------------------------------------------------------
 Purpose:
 Get or set the current DOS drive.

 Syntax:
 lpszDrive = DrvCurrentGet()
 lpszDrive = DrvCurrentSet( lpszNewDrive )

 Parameters:
 lpszNewDrive The drive letter, range A - Z, & [,\,],^,_,.

 Returns:
 A character string of length 1.

 The CA-Clipper names for these functions are:
 DrvCurGet() / DrvCurSet()

 Description:
 DrvCurrentGet() returns the drive letter of the current DOS drive.

 DrvCurrentSet() makes lpszNewDrive the current drive and returns the
 previous current drive letter.

 Returns an empty string if an error occurs.

 Example:
 // To return the current drive:

 ? "The current DOS drive is " + DrvCurrentGet() + ":"

 // To set the current drive to H:

 lpszSaveDrive = DrvCurrentSet( "H" )
 ? "The current DOS drive is now " + DrvCurrentGet() + ":"

 Notes:
 CA-Clipper:

 The CA-Clipper SET DEFAULT TO command does not affect the current DOS
 drive, therefore the value returned by DrvCurrentSet() is not necessarily
 that of SET DEFAULT TO.

See Also: WSDriveNetGet() DrvNextFreeGet()

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