Group Table Operations
AFields()
Fills a set of arrays with information about the fields in a work area.
AFields( [<aFieldName>], [<aFieldType>], [<aFieldLen>], [<aFieldDec>] ) --> nFieldCount
Alias()
Returns the alias name for a work area.
Alias( [<nWorkArea>] ) --> cAlias
CLOSE
Closes all files or a specific group of files.
CLOSE [<cAlias> | ALL | ALTERNATE | DATABASES | INDEXES]
COMMIT
Writes contents of file buffers from all work areas back into the files.
COMMIT
COPY STRUCTURE
Copies the structure of the file in the current work area to a new file.
COPY STRUCTURE [FIELDS <cFieldname,...>] TO <cFilename>
COPY STRUCTURE EXTENDED
Copies a list of field definitions to a new file.
COPY STRUCTURE EXTENDED TO <cFilename>
COPY TO
Exports records from a work area into a new file.
COPY TO <cFilename> [FIELDS <cFieldname,...>] [FOR <lForCondition>] [WHILE <lWhileCondition>] [NEXT <nCount>] [RECORD <xRecordID>] [REST] [ALL] [VIA <cDbe> | SDF | DELIMITED [WITH BLANK | <cDelimiter>] ]
CREATE
Creates and opens an empty structure extended DBF file.
CREATE <cFilename>
CREATE FROM
Creates and opens a new database from a structure extended file.
CREATE <cDbFile> FROM <cStructFile> [ALIAS <cAlias>] [VIA <cDbeName>] [NEW]
DbCargo()
Attaches an arbitrary value to a used work area
DbCargo( [<xNewValue>] ) --> xOldValue
DbClientList()
Returns a list of the Xbase Parts registered in a work area.
DbClientList() --> aXbaseParts
DbCloseAll()
Closes all files in all work areas.
DbCloseAll() --> NIL
DbCloseArea()
Closes files in a work area.
DbCloseArea() --> NIL
DbCommit()
Writes file buffers in a work area into the files.
DbCommit() --> NIL
DbCommitAll()
Writes file buffers in all work areas into files.
DbCommitAll() --> NIL
DbCopyExtStruct()
Copies the field structure from a work area into a structure extended file.
DbCopyExtStruct( <cFilename> ) --> lSuccess
DbCopyStruct()
Creates a file with the same structure as the file open in a work area.
DbCopyStruct( <cFilename>, [<aFieldNames>] ) --> lSuccess
DbCreate()
Generates a database file from a file structure array.
DbCreate( <cDbfFile>, <aStructure>, [<cDBE|<oSession>] ) --> NIL
DbCreateExtStruct()
Creates and opens an empty structure extended file.
DbCreateExtStruct( <cFilename> ) --> lSuccess
DbCreateFrom()
Creates and opens a new file from a structure extended file.
DbCreateFrom( <cNewFilename>, [<cNewDbeName>], <cStructFile>, [<cStructDbeName>], [<lNewArea>], [<cAlias>] ) --> NIL
DbDeregisterClient()
Removes an Xbase Part from a work area's list of registered Xbase Parts.
DbDeregisterClient( [<oXbp>] ) --> lSuccess
DbDestroy()
Permanently deletes a table
DbDestroy() --> NIL
Dbf()
Returns the alias name of the current work area.
Dbf() --> cAlias
DbInfo()
Sets or returns information about a work area (database object).
DbInfo( <nDefine>, [<xNewSetting>] ) --> xOldSetting
DbJob()
Retrieves the code block associated with a work area.
DbJob() --> bAreaBlock | NIL
DbLocked()
Checks if a table lock is set.
DbLocked() --> lIsFileLocked
DbPack()
Physically removes records marked as deleted from a file.
DbPack() --> NIL
DbRefresh()
Forces refresh of all internal cache buffers of current work area
DbRefresh() --> NIL
DbRegisterClient()
Registers an object to receive messages from a work area.
DbRegisterClient( <object> ) --> lSuccess
DbRelease()
Transfers an alias name from the current work space into the Zero space.
DbRelease( [<nWorkArea>|<cAlias>], [<bAreaBlock>] ) --> lSuccess
DbRequest()
Transfers an alias name from the Zero space into the current work space.
DbRequest( [<cAlias>], [<lFreeArea>], [<@bAreaBlock>], [<lWait>] ) --> lSuccess
DbResetNotifications()
Reactivates notifications being sent from a work area to registered objects.
DbResetNotifications( [<lChildAreas>] ) --> lActivated
DbResumeNotifications()
Reactivates notifications being sent from a work area to registered objects.
DbResumeNotifications( [<lChildAreas>] ) --> lActivated
DbRRollback()
Executes a roll back operation on the current table row.
DbRRollback() --> NIL
DbRSelect()
Returns the child work area of a relation.
DbRSelect( <nRelation> | <cRelName> ) --> nWorkarea
DbRSuspendSelect()
Suspends a relational restriction in a child work area.
DbRSuspendSelect() --> NIL
DbScope()
Checks if a scope is set in a work area.
DbScope( [<nScope>] ) --> xScope | aScopeBoth | lIsScope
DbSetIndex()
Opens an index file in a work area.
DbSetIndex( <cIndexFile> ) --> NIL
DbSetNullValue()
Toggles NULL/NIL value support of a work area
DbSetNullValue([<lNullAllowed>]) -> lNullAllowed
DbStruct()
Generates an array containing the structure data for a database file.
DbStruct() --> aStructure
DbSuspendNotifications()
Temporarily suspends notifications being sent from a work area to registered objects.
DbSuspendNotifications( [<lChildAreas>] ) --> NIL
DbUseArea()
Opens a database file in a work area.
DbUseArea( [<lNewArea>], [<cDBE>|<oSession>], <cFileName>, [<cAlias>], [<lShared>], [<lReadonly>] ) --> NIL
DbZap()
Deletes all records in a work area.
DbZap() --> NIL
FLUSH
Writes contents of all file buffers from a single current work area to disk.
FLUSH [[IN <nWorkArea> | <cAlias> ] | [ <cFileSpec> ]] [FORCE]
Header()
Determines the length of the file header of an opened DBF file.
Header() --> nBytes
LUpdate()
Returns the date of the last change to a database file.
LUpdate() --> dDate
PACK
Physically removes records marked for deletion from a table.
PACK [DBF][MEMO] [IN <nWorkArea> | <cAlias> ] | [cFileSpec]
RecSize()
Returns the length of a record in a work area.
RecSize() --> nBytes
SET EXCLUSIVE
Determines whether files are opened as SHARED or EXCLUSIVE by default.
SET EXCLUSIVE on | OFF | <lToggle>
USE
Opens a database file and its accompanying files in a work area.
USE [ <cFileName> [ INDEX <cIndexFiles,...> ] [ ALIAS <cAlias> ] [ VIA <cDbeName> | (<oSession>) ] [ NEW ] [ READONLY ] [ EXCLUSIVE | SHARED ] ]
Used()
Determines whether a file is open in a work area.
Used([<nWorkArea> | <cAlias>]) --> lIsUsed
WorkSpaceEval()
Evaluates a code block in all used work areas of a work space
WorkSpaceEval( <bAreaBlock>, [<nWorkSpace>] ) --> nProcessed
WorkSpaceList()
Retrieves alias names of all used work areas in a work space.
WorkSpaceList( [<nWorkSpace>] ) --> aAliasNames
ZAP
Deletes all records in the current work area or in the work area specified with the IN clause
ZAP [IN <nWorkArea> | <cAlias> ]