xHarbour Reference Documentation > Function Reference |
Opens databases and associated index files.
NetOpenFiles( <aFiles> ) --> lSuccess
Array elements
Element | Data type | Description |
---|---|---|
1 | C | Name of the database file to open |
2 | C | Alias name for work area |
3 | A | Array with index file names |
The function returns zero when all files specified with <aFiles> are successfully opened, otherwise one of the following error codes is returned:
Error codes of NetOpenFiles()
Value | Description |
---|---|
-1 | Database file not found |
-2 | Database file cannot be opened |
-3 | Index file not found |
NetOpenFiles() is a convenient network function which opens all files specified with <aFiles>. The function calls internally NetDbUse() and opens the specified index files when the database file is successfully opened.
See also: | NetDbUse(), OrdListAdd() |
Category: | Database functions , Network functions , xHarbour extensions |
Source: | rtl\ttable.prg |
LIB: | xhb.lib |
DLL: | xhbdll.dll |
http://www.xHarbour.com