| xHarbour Reference Documentation > Function Reference |
![]() |
![]() |
![]() |
Opens a database file for shared access in a work area.
NetDbUse( <cDatabase>, ;
[<cAlias>] , ;
[<nSeconds>], ;
[<cRddName>], ;
[<lNewArea>], ;
[<lShared>] , ;
[<lReadOnly>] ) --> lSuccess
The function returns .T. (true) when the database is successfully opened, otherwise .F. (false) is returned.
NetDbUse() is a network function used to open a database file in shared mode for multi-user access. If the database cannot be opened due to the file being locked by another process, the function retries the operation for a maximum of <nSeconds> seconds and prompts the user if the operation should be retried or aborted.
The function uses DbUseArea() and implements additional default logic for database usage in a network when the database cannot be opened at the moment. Refer to DbUseArea() for more information on opening a database file.
| See also: | DbCloseArea(), DbUseArea(), NetOpenFiles(), RddSetDefault(), Select(), SET DEFAULT, SET PATH, Set() |
| Category: | Database functions , Network functions , xHarbour extensions |
| Source: | rtl\ttable.prg |
| LIB: | xhb.lib |
| DLL: | xhbdll.dll |
http://www.xHarbour.com