PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
This content has been translated automatically. Click here to view the French version.
  • 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)HFSQLAvailable only with these kinds of connection
Opens the xBase data file and the "memo" file if it exists.
Remark: From version 19, HFSQL is the new name of HyperFileSQL.
Example
HDBOpen("COMMANDE", "CO", "C:\FICHIER\COMMANDE.DBF")
HDBIndex("COMMANDE", "C:\FICHIER\COMMANDE.NTX", "NumCde")
HDBOpen("PRODUIT", "PR", "C:\FICHIER\PRODUIT.DBF")
HDBIndex("PRODUIT", "C:\FICHIER\PRODUIT.NTX", "NumProd")
 
// Affichage des caractéristiques de la commande
HReadFirst("COMMANDE", "NumCde")
IF HOut() = False THEN
HReadSeek("PRODUIT", "NumProd", CO.NUMPROD)
FileToScreen()
ELSE
Error("Fichier vide")
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 occurred. 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 the HDBOpen function 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:
// Lecture du fichier
IF HOut() = False THEN
HReadSeek(NomFichier, NomClé, Valeur_Clé)
END

Limitations

  • This function is not available when using a database via Remote Access.
  • This function is not available when using a stand-alone executable.
Component: wd270hf.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment