home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DP Tool Club 13
/
CD_ASCQ_13_0494.iso
/
maj
/
419
/
getlabl2.bas
< prev
next >
Wrap
BASIC Source File
|
1994-03-13
|
672b
|
18 lines
' +----------------------------------------------------------------------+
' | |
' | PBClone Copyright (c) 1990-1994 Thomas G. Hanlin III |
' | |
' +----------------------------------------------------------------------+
DECLARE SUB GetLabel (Drive$, Label$, LabelLen%, ErrCode%)
FUNCTION GetLabel2$ (Drive$)
Label$ = SPACE$(11)
GetLabel Drive$, Label$, LLen%, ErrCode%
IF ErrCode% THEN
GetLabel2$ = ""
ELSE
GetLabel2$ = LEFT$(Label$, LLen%)
END IF
END FUNCTION