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>diskreadyw()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
DISKREADYW()

Syntax:     DISKREADYW(<expC>)

Arguments:  <expC> denotes the drive designator (A,B,C etc.) to be
            tested.

Returns:    A logical value.
            A (.T.) return value denotes the designated drive is
            ready to operate and can be written to.

Usage:      As with DISKREADY(), this function can be used to test  the
            status of a drive.  DISKREADYW() will also test whether it is
            possible to write to the drive.  The DISKREADY() function
            does not test the write protection tab of a floppy disk.  Drive A:
            for example could be ready but cannot be written to.  It is
            therefore possible to to test the diskette for the write protect
            tab, thus avoiding an error at runtime.

Library:    CT1.LIB


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

Examples:   IF DISKREADY("A") .AND. .NOT. DISKREADYW("A")
               ? "Diskette has no write protect tab."
            ENDIF



See Also: DISKREADY()

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