Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- NetLib for Clipper, Version 6.0 - n_drvtype( <cdrive> ) http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
N_DRVTYPE( <cDrive> )


Parameter

<cDrive>
Drive letter in question.


Returns

Code indicating the type of drive.

Code          Drive type
N             Networked (Shared)
L             Local
U             Undefined



Description

All but the first character in <cDrive> is ignored. Thus " : " can be 
omitted. Case is ignored.


Examples

// See if drive F: is available for mapping,
// i.e., not local, and not already mapped.
IF N_DRVTYPE('F:') = 'U'
   N_MAPDRIVE('F:', 'SYS:APPL\DATA')
ENDIF

// Get last 'real' local drive
drive = 67   // Start with C:
DO WHILE N_DRVTYPE(CHR(drive)) = 'L'
   drive = drive + 1
ENDDO
? 'Last local drive is ', CHR(drive - 1) + ":"



See Also: N_MAPDRIVE()

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