PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Creating an xBase file via the native xBase access
  • 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/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
HDBCreation (Function)
In French: HDBCréation
Native AccessesHFSQLAvailable only with these kinds of connection
Ends the description of the structure of an xBase data file by 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.
Note: From version 19, HFSQL is the new name of HyperFileSQL.
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")
HDBCréation()
Syntax
<Result> = HDBCreation()
<Result>: Boolean
  • True if the operation was performed,
  • False if a problem occurred. HError is used to identify the error.
Remarks

Creating an xBase file via the native xBase access

  • 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 during the call to 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 accessing a database via Remote Access.
  • This function is not available when using a stand-alone executable.
Components
WINDEVWEBDEV - Server code wd230hf.dll
Minimum required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment