XBase.OpenFile

Syntax:

OpenFile(<PathToTheDatabase>, <PathToIndex>, <ReadOnly>)

Parameters:

<PathToTheDatabase> (required)

Type: String.
Full name of the DBF formatted database table file being opened.

<PathToIndex> (optional)

Type: String.
Full name of the database table index file being opened. If the parameter is not specified, the index file will not be opened.
Default value: Empty string.

<ReadOnly> (optional)

Type: Boolean.
Defines file opening mode. True indicates read only; False indicates full access.
Default value: False.

Description:

Opens a DBF formatted database table file, and opens the corresponding index file, if necessary.

Availability:

Thin client, server, thick client, external connection.

Example:

xB.OpenFile("c:\test.dbf", "c:\test.cdx");

    

1C:Enterprise Developer's Community