home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C!T ROM 2
/
ctrom_ii_b.zip
/
ctrom_ii_b
/
PROGRAM
/
BASIC
/
PBC22
/
SOURCES
/
GETLABL2.BAS
< prev
next >
Wrap
BASIC Source File
|
1993-01-01
|
672b
|
18 lines
' +----------------------------------------------------------------------+
' | |
' | PBClone Copyright (c) 1990-1993 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