ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / Managing databases / Managing xBase files / WLanguage functions
  • Creating an xBase file via the Native xBase Connector
  • Creating an xBase file
  • Creating an xBase file in the data model editor
  • Limitations
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
HDBCreation (Function)
In french: HDBCreation
Native Connectors (Native Accesses)HFSQL ClassicAvailable only with these kinds of connection
Ends the description of the structure of an xBase data file programmatically. The data file that was just described is created on disk in the path specified in HDBDescribeFile. The data, memo and index files are created on disk.
Example
HDBDescribeFile("DBCUSTOMER", "CD", "C:\FILE\CUSTOMER.DBF")
HDBDescribeField("LASTNAME,C,20")
HDBDescribeField("FIRSTNAME,C,20")
HDBDescribeField("AGE,N,3,0")
HDBDescribeField("BALANCE,N,10,2")
HDBDescribeField("MARRIED,L")
HDBDescribeField("DOB,D")
HDBDescribeField("INFO,M")
HDBCreation()
Syntax
<Result> = HDBCreation()
<Result>: Boolean
  • True if the operation was performed,
  • False if a problem occurs. HError is used to identify the error.
Remarks

Creating an xBase file via the Native xBase Connector

  • The data and index files are created in dBase 3 format (NDX file).
  • After HDBCreation, the file can be used without having to call HDBOpen and HDBIndex.

Creating an xBase file

  • If the file already exists, it is overwritten by the new file.
  • The error 1009 will occur if the file is opened with HDBCreation.

Creating an xBase file in the data model editor

An xBase file can also be described and created in the editor. You also have the ability to import an existing xBase file into the data model editor.

Limitations

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

Last update: 11/14/2024

Send a report | Local help