xHarbour Reference Documentation > Function Reference xHarbour Developers Network  

NetOpenFiles()

Opens databases and associated index files.

Syntax

NetOpenFiles( <aFiles> ) --> lSuccess

Arguments

<aFiles> := { <cDatabase>, <cAlias>, { <cIndex,...> } }
This is a two dimensional array with three columns. Each array element contains an array with three elements:

Array elements
ElementData typeDescription
1CName of the database file to open
2CAlias name for work area
3AArray with index file names

Return

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()
ValueDescription
-1Database file not found
-2Database file cannot be opened
-3Index file not found

Description

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.

Info

See also:NetDbUse(), OrdListAdd()
Category: Database functions , Network functions , xHarbour extensions
Source:rtl\ttable.prg
LIB:xhb.lib
DLL:xhbdll.dll


Copyright © 2006-2007 xHarbour.com Inc. All rights reserved.
http://www.xHarbour.com
Created by docmaker.exe