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

  1. '   +----------------------------------------------------------------------+
  2. '   |                                                                      |
  3. '   |        PBClone  Copyright (c) 1990-1994  Thomas G. Hanlin III        |
  4. '   |                                                                      |
  5. '   +----------------------------------------------------------------------+
  6.  
  7.    DECLARE SUB StripChar (St$, Ch$, StLen%)
  8.  
  9. FUNCTION ValidSt% (St$, GoodCh$)
  10.    IF LEN(GoodCh$) THEN
  11.       TmpSt$ = St$
  12.       StripChar TmpSt$, GoodCh$, StLen%
  13.       ValidSt% = (StLen% = 0)
  14.    ELSE
  15.       ValidSt% = (LEN(St$) = 0)
  16.    END IF
  17. END FUNCTION
  18.