home *** CD-ROM | disk | FTP | other *** search
/ World of Shareware - Software Farm 2 / wosw_2.zip / wosw_2 / QBAS / PBC22B.ZIP / PBC$BAS.ZIP / GETLABL2.BAS < prev    next >
BASIC Source File  |  1993-01-01  |  672b  |  18 lines

  1. '   +----------------------------------------------------------------------+
  2. '   |                                                                      |
  3. '   |        PBClone  Copyright (c) 1990-1993  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.