|
|
|
|
|
- Using HDBOpenNoLock
- Limitation
HDBOpenNoLock (Function) In french: HDBOuvreSansBloquer
 Available only with these kinds of connection
In single-user mode, opens an xBase data file without locking it. The open xbBase file can be shared between several programs. In multi-user mode, operating mode equivalent to the one of HDBOpen. HMode("*", hModeMono)
HDBOpenNoLock("COMMANDE", "CO", "C:\FICHIER\COMMANDE.DBF")
HDBIndex("COMMANDE", "C:\FICHIER\COMMANDE.NTX", "NumCde")
HReadFirst("COMMANDE", "NumCde")
WHILE HOut() = False
Afficher_commande
HReadNext()
END
Syntax
<Result> = HDBOpenNoLock(<Logical name of xBase file> , <Abbreviation of xBase file> , <Full name of xBase file>)
<Result>: Boolean - True if the operation was performed,
- False if a problem occurs. HError is used to identify the error.
<Logical name of xBase file>: Character string Logical name given to the xBase file. This name will be used to handle the xBase file programmatically. <Abbreviation of xBase file>: Character string Prefix (2 characters) used through programming to identify a file item. For example, the "Customer" data file has the prefix CL. To use the "Name" field in this file, use the syntax CL.NAME. Warning: several files opened with HDBOpenNoLock cannot have the same abbreviation, even if the files have been closed. <Full name of xBase file>: Character string Path and full name of xBase file to open (with the extension). Remarks Using HDBOpenNoLock Warning: The HDBOpenNoLock function should only be used in programs that do not modify the file and use single-user mode.. The opened file is not locked. Therefore, the following functions must not be used after HDBOpenNoLock: Limitation This function is not available when using a stand-alone executable.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|