[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
SetHandleCount( nHandles )-> <nHandlesAvailables>
------------------------------------------------------------------------------
PARAMETER:
<nHandles> specifies the number of file handles that the application
requires. The maximum value is 255
RETURNS:
<nHandlesAvailables> is the number of handles that are actually available
It mmay be less than the requested value !
DESCRIPTION:
The SetHandleCount function changes the number of file handles available
to a task. This is essential for Clipper programmers, as it increases the
number of available file handles from 20 ( default ) to the required
value. Please note, that every table and every index or Memo file need
one file handle. so the default value is not enough in most cases.
EXAMPLE:
+--------------------------------------------------------------+
| /* Set max handles to 99 */ |
| ACTIVATE WINDOW oWnd ; |
| ICONIZED ; |
| ON DROPFILES TakeDrop( aFiles ) ; |
| ON INIT SetHandleCount( 99 ) |
| |
| |
+--------------------------------------------------------------+
SOURCE:
SOURCE\WINAPI\SetHandl.C
See Also:
GetFreeFileHandles
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson