Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- ClipOn 3.0 Reference - c_handles() http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 C_HANDLES()

 DESCRIPTION

 The C_HANDLES() function returns the total number of files (file
 handles) currently in use by the program.

 NOTES

 The ClipOn function C_STDCLOSE() closes DOS standard devices and
 makes the file handles available, however, C_HANDLES() can not
 always detect the use of these handles.

 Clipper's virtual memory system as well as overlay linkers such as
 PLINK86, .RTLINK, and BLINKER often use a file handle to swap
 memory to disk and to read the overlay files.  The C_HANDLES()
 function will include the use of this file handle in it's total.

 SYNTAX

 C_HANDLES()

 PARAMETERS

 There are no parameters.

 RETURNS

 C_HANDLES() returns the total number of file handles currently in use.

 EXAMPLES

 use test index test     && Open database and index

 ? c_handles() --> 2     && Two files in use
 ...
 ...
 if c_handles() >= c_maxhandles()    && Check how many files are in use
   ? "Can Not Open File"             && before opening another file.
 endif
 select 0
 use nextdbf


See Also: C_SETHANDLES() C_MAXHANDLES()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson