DACloseFile
直接存取功能
描述
關閉原先以 DAOpenFile 函式開啟的檔案。對檔案的所有變更都會遺失;想保留變更,必須在關檔前使用 DASaveAsFile 或 DAAppendFile 函式
語法
Delphi
Function TPDFlib.DACloseFile(FileHandle: Integer): Integer;
ActiveX
Function PDFlib::DACloseFile(FileHandle As Long) As Long
DLL
int DLDACloseFile(int InstanceID, int FileHandle);
參數
| FileHandle | 由 DAOpenFile、DAOpenFileReadOnly 或 DAOpenFromStream 函式傳回的控制代碼 |
|---|
傳回值
| 0 | 指定的 FileHandle 無效,檔案可能已經關閉 |
|---|---|
| 1 | 檔案關閉成功 |