brOpenFile Method

       

Creates a new instance of a clsD3File class and opens the specified D3 file within the database.

NOTE

See the Remarks section for RPC and ODBC connection exceptions.

Syntax

Set oFile = object.brOpenFile(sRequired, [sOptional])

Parameters

Parameter

Description

oFile

An object variable that represents a clsD3File object to be created.

object

An object variable that represents a clsD3Connection object.

sRequired

A String providing the a D3 file reference.

sOptional

Optional. A String provided for compatibility with FlashBASIC syntax. When using this parameter, sRequired would contain either "Dict" or "", and this parameter would contain the filename.

Remarks

The following two lines of code are identical in functionality, opening the dictionary only of the customers file:

Set oFile1 = oConn.brOpenFile( "Dict customers ")

Set oFile2 = oConn.brOpenFile( "Dict ", "customers ")

The following two lines of code are identical in functionality, opening the dictionary and datalevel of the customers file:

Set oFile1 = oConn.brOpenFile( "customers ")

Set oFile2 = oConn.brOpenFile( "", "customers ")

The following two lines of code are identical in functionality, opening the dictionary of the customers file and the datalevel, current:

Set oFile1 = oConn.brOpenFile( "customers,current ")

Set oFile2 = oConn.brOpenFile( "", "customers,current ")

FlashBASIC Reference

open