AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Ayuda / WLanguage / Administrar bases de datos / Gestión de archivos xBase / Funciones WLanguage
  • Link between xBase files
  • Limitations
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
HDBOpen (Function)
In french: HDBOuvre
Native Connectors (Native Accesses)HFSQL ClassicAvailable only with these kinds of connection
Opens the xBase data file and the "memo" file if it exists.
Example
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")
 
// Display the characteristics of the order
HReadFirst("ORDERS", "OrdNum")
IF HOut() = False THEN
HReadSeek("PRODUCT", "ProdNum", CO.PRODNUM)
FileToScreen()
ELSE
Error("Empty file")
END
Syntax
<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 by programming.
<Abbreviation of xBase file>: Character string
Prefix (2 characters) used through programming to identify a file item. For example, if the prefix of "Customer" file is CU, the syntax for using the "Name" item of this file is CU.NAME.
Caution: Multiple 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).
Remarks

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:
// Read the file
IF HOut() = False THEN
HReadSeek(FileName, KeyName, Key_Value)
END

Limitations

This function is not available when using a stand-alone executable.
Component: wd290hf.dll
Versión mínima requerida
  • Versión 9
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 06/07/2023

Señalar un error o enviar una sugerencia | Ayuda local