home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 5 / 05.iso / a / a012 / 1.ddi / CHAP23.EXE / CHP2303.PRG < prev    next >
Encoding:
Text File  |  1991-04-30  |  519 b   |  19 lines

  1. /*
  2.    Listing 23.3  Mem_chk()
  3.    Author: Joe Booth
  4.    Excerpted from "Clipper 5: A Developer's Guide"
  5.    Copyright (c) 1991 M&T Books
  6.                       501 Galveston Drive
  7.                       Redwood City, CA 94063-4728
  8.                       (415) 366-3600
  9. */
  10.  
  11. //───── NOTE: must compile with the /N option!
  12.  
  13. function mem_chk(param)
  14. param := if(valtype(param)="C",len(param),param)
  15. // Check largest contigous block of storage //
  16. return ( param * 3 < memory(1)*1024 )
  17.  
  18. // end of file CHP2303.PRG
  19.