CloseCtFileByName
Close a memory file, or a file held open by the FairCom Server KEEPOPEN_LIST keyword, and remove it from memory.
Short Name
ctCLSNAM()
Type
ISAM function
Declaration
NINT CloseCtFileByName(cpTEXT filnam, cpTEXT fileword);
Description
CloseCtFileByName() closes a memory file and remove its data from memory.
Parameter filnam is the file name.
fileword is an optional file password. If fileword is null then there will be no password for this file. If a password is established, every user will need to use the password to be able to open the file.
In order to be able to remove the file from memory, all users must have the file closed. To close the file and reopen it, use CloseIFile().
Return
CloseCtFileByName() returns NO_ERROR in case of successfully closing and removing the file from memory.
Value |
Symbolic Constant |
Explanation |
---|---|---|
12 |
FNOP_ERR |
Could not open file. |
See FairCom DB Error Codes for a complete listing of valid FairCom DB error values.
Limitations
Client/Server mode only.