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


Syntax:        L_ISDRIVE(<expC>)



Purpose:       To determine if the specified drive is a valid disk
               drive.


Arguments:     <expC> is the drive letter,without a colon, of the
               probable drive.


Returns:       A logical (.T.) if the specified drive is valid.
               A logical (.F.) if the specified drive is not valid.


Examples:      * Determine the valid drives in the system
               * and put them in an array called "drives"
               DECLARE DRIVES[26]
               i = 0
               j = 0
               FOR i = 1 TO 26
                   drive  = CHR(i+64)
                   status = L_ISDRIVE(drive)
                   IF status
                      j = j + 1
                      DRIVES[j] = status
                   ENDIF
               NEXT


Language:      Assembler

See Also: L_ISFIXED() L_FLOPPIES() L_NUMDRIVE() L_GETDRIVE()

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