AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Este contenido se ha traducido automáticamente.  Haga clic aquí  para ver la versión en inglés.
Ayuda / WLanguage / Administrar bases de datos / Gestión de archivos xBase / Funciones WLanguage
  • Link between xBase files
  • Limitations
WINDEV
WindowsLinuxJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadIOS WidgetApple WatchMac Catalyst
Otros
Procedimientos almacenados
HDBOpen (Function)
Conectores NativosHFSQL ClassicDisponible solo con estos tipos de conexión
Opens the xBase data file and the "memo" file, if any.
Ejemplo
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
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:
// Read the xBase file
IF HOut() = False THEN
	HReadSeek(FileName, KeyName, Key_Value)
END

Limitations

This function is not available when using a stand-alone executable.
Componente: wd300hf.dll
Versión mínima requerida
  • Versión 9
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 27/03/2025

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