Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- dBsee 4.6 - The Library - <b>dfdiskstatus()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
dfDiskStatus()
Checks state of a drive
------------------------------------------------------------------------------
Syntax:

     dfDiskStatus( <cDrive> ) --> nStatus

Parameters:

     <cDrive>   Drive that must be checked

Returns:

     <nStatus>    State of drive
     
     #include "dfFloppy.ch"
     +----------------------------------------------------+
     |#define         |Description                        |
     |----------------+-----------------------------------|
     |DISK_READY      |Disk ready for write               |
     |DISK_NOFLOPPY   |Disk that miss                     |
     |DISK_NOWRITE    |Disk used only for ready           |
     |DISK_UNKNOWERROR|Unknown error                      |
     +----------------------------------------------------+

Description:

     Allows to know if a drive is ready for write

Example:

     #include "dfFloppy.ch"
     IF dfDiskStatus("A")==DISK_NOWRITE
        dbMsgErr( "Protect disk" )
     ENDIF

See also:

     dfDiskReady()

See Also: dfDiskReady()

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