home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Monster Media 1994 #1
/
monster.zip
/
monster
/
PROG_BAS
/
PBC23C.ZIP
/
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