Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Clipper Tools One Guide - <b>disktype()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
DISKTYPE()

Syntax:     DISKTYPE(<expC>)

Arguments:  <expC> denotes the drive (A,B,C,etc.) when it is required
            to determine the type of device.

Returns:    A numeric value.
            The value corresponds to the FAT-Id byte of the
            diskette/hard disk.

            FAT-ID      Designation
              255       Double sided            8 sectors
              254       Single sided            8 sectors
              253       Double sided            9 sectors
              252       Single sided            9 sectors
              249       Double sided            15 sectors (HD diskette)
              248       Hard disk

            Other values may be returned by this function.  These values
            can be found in any DOS Technical Reference Manual.

Usage:      If a user places a 360K diskette in an AT high density drive
            (1.2MB), it is not always possible to read these disks again
            on a low density drive.  With DISKTYPE() it is possible to
            test this and to give an appropriate warning message.

Notes:      The function will automatically use the drive currently
            selected in the absence of the <expC>.

Library:    CT1.LIB


--------------------------------- Example ------------------------------

Examples:   IF .NOT. ISAT() .AND. DISKTYPE("A") = 249
               ? "Warning! The diskette in drive A: "+;
                 "is a high density (1.2MB) diskette "+;
                 ? "Unusable on this machine."
            ENDIF



See Also: DISKNAME() DRIVETYPE()

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