XBase.CreateFile

Syntax:

CreateFile(<PathToTheDatabase>, <PathToIndex>)

Parameters:

<PathToTheDatabase> (required)

Type: String.
Full name of the database table file being created in DBF format.

<PathToIndex> (optional)

Type: String.
Complete name of the index file being created. If parameter is not indicated, the index file will be not created.
Default value: Empty string.

Description:

Creates a new database table file in DBF format along with the corresponding index file. The created database table file will contain all currently defined fields, and the index file will contain all existing indices.

Availability:

Thin client, server, thick client, external connection.

Example:

BaseFileName = "C:\test.dbf";
IndexFileName = "C:\test.cdx";
xB.CreateFile(BaseFileName, IndexFileName);


    

1C:Enterprise Developer's Community