home *** CD-ROM | disk | FTP | other *** search
/ DP Tool Club 13 / CD_ASCQ_13_0494.iso / maj / 419 / getlabl2.bas < prev    next >
BASIC Source File  |  1994-03-13  |  672b  |  18 lines

  1. '   +----------------------------------------------------------------------+
  2. '   |                                                                      |
  3. '   |        PBClone  Copyright (c) 1990-1994  Thomas G. Hanlin III        |
  4. '   |                                                                      |
  5. '   +----------------------------------------------------------------------+
  6.  
  7. DECLARE SUB GetLabel (Drive$, Label$, LabelLen%, ErrCode%)
  8.  
  9. FUNCTION GetLabel2$ (Drive$)
  10.    Label$ = SPACE$(11)
  11.    GetLabel Drive$, Label$, LLen%, ErrCode%
  12.    IF ErrCode% THEN
  13.       GetLabel2$ = ""
  14.    ELSE
  15.       GetLabel2$ = LEFT$(Label$, LLen%)
  16.    END IF
  17. END FUNCTION
  18.