home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 5 / 05.iso / a / a075 / 1.img / TOOLKIT1.EXE / SST4.PRG < prev    next >
Encoding:
Text File  |  1989-08-08  |  648 b   |  42 lines

  1. ********************
  2.  
  3. FUNCTION Delete_it
  4.  
  5.    PARAMETERS _condition
  6.  
  7.    * In panning, if a record needs to be deleted or recalled for a
  8.    * specific reason, this function should be called.
  9.  
  10.    IF PCOUNT() = 0
  11.       _condition = ".T."
  12.    ENDIF
  13.  
  14.    IF TYPE("_condition") = "L"
  15.       IF _condition
  16.          DODELIT()
  17.       ELSE
  18.          RETURN(.F.)
  19.       ENDIF
  20.    ELSE
  21.       IF &_condition.
  22.          DODELIT()
  23.       ELSE
  24.          RETURN(.F.)
  25.       ENDIF
  26.    ENDIF
  27.    RETURN(.T.)
  28.  
  29. ********************
  30.  
  31. FUNCTION Dodelit
  32.  
  33.    IF DELETED()
  34.       RECALL
  35.    ELSE
  36.       DELETE
  37.    ENDIF
  38.    RETURN(.T.)
  39.  
  40. * End of File
  41.  
  42.