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:
 
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)