[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 FLOPPYTYPE()
 Determines the exact type of floppy drive
------------------------------------------------------------------------------
 Syntax

     FLOPPYTYPE([<cDrive>]) --> nFloppyType

 Argument

     <cDrive>  Designates the drive (A, B, C, etc.) for which you want a
     type determined.  The default is the current disk drive.

 Returns

     The function returns the exact type of the designated disk drive, coded
     as follows:

     Table 7-18:  Coding of Drive Types
     ------------------------------------------------------------------------
     Code    Definition
     ------------------------------------------------------------------------
      0      No floppy drive
      1      360-kB drive
      2      1.2-MB drive
      3      720-kB drive
      4      1.44-MB drive
     ------------------------------------------------------------------------

 Description

     This function gives you a numeric value that specifies exact type and
     capacity of the selected floppy drive.  Whether or not the device is a
     floppy drive, is determined beforehand by DRIVETYPE().

 Note

     .  The drive type is determined without actually accessing the
        drive. Therefore, a disk does not have to be in the drive.

 Example

     Is the current disk drive a floppy and what type?

     IF DRIVETYPE() = 1 .OR. DRIVETYPE() = 2
        DO CASE
        CASE FLOPPYTYPE() = 0
        ? "No floppy drive!"
        CASE FLOPPYTYPE() = 1
        ? "360 kB drive"
        CASE FLOPPYTYPE() = 2
        ? "1.2 MB drive"
        CASE FLOPPYTYPE() = 3
        ? "720 kB drive"
        CASE FLOPPYTYPE() = 4
        ? "1.44 MB drive"
        ENDCASE
     ENDIF


See Also: DISKTYPE() DRIVETYPE()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson