KeyView 23.4

# fpCloseDocument()

Closes a `KVDocument` that was opened with fpOpenDocumentFromFile() or fpOpenDocumentFromStream(). Call this function when you no longer need the `KVDocument`, to free the memory that was allocated.

You must call this function on all open documents created by a KeyView Filter session, before calling fpShutdown() on the session.

## Syntax

    BOOL (pascal* fpCloseKVDocument)(KVDocument pDocument);

## Arguments

`pDocument` | A `KVDocument` that you created with fpOpenDocumentFromFile() or fpOpenDocumentFromStream().

## Returns

This functions returns `TRUE` on success or `FALSE` on failure.

Copyright 2016-2023 Open Text
Version 23.4 | Last updated September 2023

Send documentation feedback

Close

Send documentation feedback

To send feedback using your default email client, open an email window.

Otherwise, send your feedback and the information below to swpdl.idoldocsfeedback@microfocus.com.

We appreciate your feedback!

Product: IDOL KeyView 23.4

Topic Title: fpCloseDocument()