|
|
|
|
|
- Link between xBase files
- Limitations
HDBOpen (Function)
 Disponible solo con estos tipos de conexión
Opens the xBase data file and the "memo" file, if any. HDBOpen("ORDERS", "OR", "C:\FILE\ORDERS.DBF")
HDBIndex("ORDERS", "C:\FILE\ORDERS.NTX", "OrdNum")
HDBOpen("PRODUCT", "PR", "C:\FILE\PRODUCT.DBF")
HDBIndex("PRODUCT", "C:\FILE\PRODUCT.NTX", "ProdNum")
HReadFirst("ORDERS", "OrdNum")
IF HOut() = False THEN
HReadSeek("PRODUCT", "ProdNum", CO.PRODNUM)
FileToScreen()
ELSE
Error("Empty file")
END
Sintaxis
<Result> = HDBOpen(<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, if the prefix of the "Customer" data file is CL, to use the "Name" field in this file, use the syntax CL.NAME. Warning: several data files opened with HDBOpen 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). Observaciones Link between xBase files The links between xBase files are not automatically managed. Therefore, you must write the "link" code to access a record in a linked file. The record in the linked file must be read whenever the file is read:
IF HOut() = False THEN
HReadSeek(FileName, KeyName, Key_Value)
END
Limitations This function is not available when using a stand-alone executable.
Esta página también está disponible para…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|