This function is used to release the resources associated with a file search handle. It is used in conjunction with the VaToolBxFindFirst and VaToolBxFindNext functions.
The resources are implicitly released when you execute a complete loop (VaToolBxFindNext is executed in a loop until the search is finished). If you want to interrupt the search without browsing through all the results, you must explicitly release the resources using VaToolBxFindClose.
Context
Windows client,
Windows server,
Mobile client,
Mobile server,
Java client,
Java server,
Adelia Web client,
Adelia Cloud client.
Parameters
NUM_BIN_4 |
Handle |
Search handle returned by the call of VaToolBxFindFirst. Input/Output parameter. VaToolBxFindClose resets explicitly Handle to zero. |
Example
NUM_BIN_4 |
Handle |
|
|
* Searches and processes the first file named 'transfer_xxxx.dat' |
|
Joker |
= 'c:\temp\transfer_????.dat' |
CALL_DLL |
'VaToolBx' 'VaToolBxFindFirst' Handle Joker File Attributes |
IF Handle <> 0 |
Handle <> 0 |
* Processes the file… |
|
... |
|
* Resources are released |
|
CALL_DLL |
'VaToolBx' 'VaToolBxFindClose' Handle |
END |
|
List of the VaToolBx functions by topic