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
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
Ends the description of the structure of an xBase data file through programming. 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 database via Remote Access.
  • This function is not available when using a stand-alone executable.
Component: wd290hf.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help