SetFileFlag
Applies to
VAccess
Description
Sets the file flag specified before creating a Btrieve file with the Create method.
Syntax
object
.
SetFileFlag
(
flag, setting
)
The syntax for this method has the following parts:
Part
Description
object
Required. The object placeholder represents an object expression that evaluates to an object in the Applies To list.
flag
Required. Contains the file flag to set
setting
Required. Specifies the setting for the flag. Can be
True
or
False
.
Remarks
Constant declarations are included in the files GLOBAL.BAS (for Visual Basic), GLOBAL.PAS (for Delphi), and GLOBAL.H (for Visual C++). Include one of these files (whichever is appropriate for your development environment) in your project to use the file flag constants in your application.
Example
Stat = VAccess1.SetFileFlag(BTF_fTruncate, False)
Stat = VAccess1.SetFileFlag(BTF_fDataCompression, False)
Stat = VAccess1.SetFileFlag(BTF_fKeyOnly, False)
Stat = VAccess1.SetFileFlag(BTF_fPreallocate, False)
VAccess1.PageSize = 0
Stat = VAccess1.DdfCreateTable(True)