Click or drag to resize

Workarea Class

X#
Base class for DBF based RDDs. Holds common properties such as the Workarea number, Alias, Fields list and various flags.
Inheritance Hierarchy
Object
  Workarea
    ADSRDD
    DBF
    TEXTRDD

Namespace:  XSharp.RDD
Assembly:  XSharp.Core (in XSharp.Core.dll) Version: 2.19
Syntax
 CLASS Workarea IMPLEMENTS IRdd, 
	IDisposable, IClosedRDD
Request Example View Source

The Workarea type exposes the following members.

Properties
  NameDescription
Public propertyAlias
Retrieve the alias name.
Public propertyArea
Retrieve the Workarea number.
Public propertyBoF
Is the table at the logical beginning-of-file.
Public propertyBottom
Is at bottom ?
Public propertyClosed
Public propertyDeleted
Is the current row deleted?
Public propertyDriver
Driver (RDD) name of the object.
Public propertyEoF
Is the table at the logical end-of-file.
Public propertyExclusive
Is the Workarea opened Exclusively
Public propertyFieldCount
The # of fields in the current Workarea.
Public propertyFileName
File name of the main file
Public propertyFilterInfo
Current Filter
Public propertyFilterText
The filter condition as a string.
Public propertyFound
The outcome of the last search operation.
Public propertyHasProperties
Public propertyHasRelations
Public propertyMemo
Current memo implementation.
Public propertyOrderCondInfo
Current Order condition
Public propertyProperties
Public propertyReadOnly
Is the file opened ReadOnly ?
Public propertyRecCount
The number of rows.
Public propertyRecId
The row identifier at the current cursor position.
Public propertyRecNo
The physical row identifier at the current cursor position.
Public propertyRecordBuffer
Current Record
Public propertyShared
Is the current Workarea opened Shared?
Public propertyTop
Is at top?
Top
Methods
  NameDescription
Public method_getMemoBlockNumber
Public methodAddField
Add a column.
Public methodAppend
Append a blank row and position the cursor to the new row.
Public methodAppendLock
Add a newly appended row to the list of locked rows.
Public methodBlobInfo
Retrieve information about a memo column.
Public methodChildEnd
Report the initialization of a relation.
Public methodChildStart
Report the initialization of a relation.
Public methodChildSync
Post a pending relational movement, indicating that the specified child work area has been affected by a parental movement.
Public methodClearFilter
Clear the active filter condition.
Public methodClearRel
Clear relations.
Public methodClearScope
Clear the active locate condition.
Public methodClose
Close a table.
Public methodCloseMemFile
Close the memo file
Public methodCompile
Compile an expression.
Public methodContinue
Goto the next record based on the corrent locate condition.
Public methodCreate
Create a table.
Public methodCreateFields
Add columns defined in an array.
Public methodCreateMemFile
Create the memo file
Public methodDbEval
Evaluate a code block for each row.
Public methodDelete
Mark the row at the current cursor position for deletion.
Public methodDispose
Releases all resources used by the Workarea
Public methodDispose(Logic)
Releases the unmanaged resources used by the Workarea and optionally releases the managed resources
Public methodEvalBlock
Evaluate a code block.
Public methodEvalFilter
Public methodFieldIndex
Return the ONE based field index for a field name.
Public methodFieldInfo
Retrieve and optionally change information about a column.
Public methodFieldName
Retrieve a column name based on its ONE based column number.
Public methodFlush
Flush the changes to the table, its indexes and memo file.
Public methodForceRel
Force all pending relational seeks to be performed.
Public methodGetField
Public methodGetRec
Retrieve the RDD's record buffer as array of bytes.
Public methodGetScope
Retrieve the active locate condition.
Public methodGetValue
Get a value for the specified column.
Public methodGetValueFile
Get the value for a column and write (export) it to an external file.
Public methodGetValueLength
Get the length of the for the specified column.
Public methodGoBottom
Position the cursor to the last logical row.
Public methodGoCold
Write the contents of a work area's memory to the data store (usually a disk).
Public methodGoHot
Mark a data buffer as hot, indicating that it needs to be written to the data store.
Public methodGoTo
Position the cursor to a specific, physical row.
Public methodGoToId
Position the cursor to a specific, physical identity.
Public methodGoTop
Position the cursor to the first logical row.
Public methodHeaderLock
Lock or unlock the header of a database file.
Public methodInfo
Retrieve and optionally change information about a work area.
Public methodLock
Perform a lock.
Public methodOpen
Open a table.
Public methodOpenMemFile
Open the memo file
Public methodOrderCondition
Set the condition for the next Index Creation
Public methodOrderCreate
Create a new index or tag.
Public methodOrderDestroy
Delete an index or tag.
Public methodOrderInfo
Retrieve information about an index.
Public methodOrderListAdd
Open an index file and add to the list of open indexes for the current Workarea.
Public methodOrderListDelete
Close an index file and remove it from the list of open indexes for the current Workarea.
Public methodOrderListFocus
Set focus to another index in the list open indexes for the current Workarea.
Public methodOrderListRebuild
Rebuild all indexes for the current Workarea.
Public methodPack
Physically remove rows marked for deletion.
Public methodPutRec
Replace the row at the current cursor position with the contents of a byte array.
Public methodPutValue
Write a value for a specified column
Public methodPutValueFile
Read (Import) a value from an external file and write it to the specified column.
Public methodRecall
Remove the deletion marker from the row at the current cursor position.
Public methodRecInfo
Retrieve and optionally change information about a row.
Public methodRefresh
Discard all changes to the current record and reread the buffer from disk. When the current buffer is in Append mode then the server will move to the bottom of the file.
Public methodRelArea
Retrieve the logical number of a related work area.
Public methodRelEval
Evaluate a code block against the relation in a work area.
Public methodRelText
Retrieve the key expression of a relation.
Public methodSeek
Perform a seek operation on the current selected index for the current Workarea.
Public methodSetFieldExtent
Set the Number of Fields the AddField Method will add.
Public methodSetFilter
Set the filter condition.
Public methodSetRel
Set a relation.
Public methodSetScope
Set the locate condition.
Public methodSkip
Position the cursor relative to its current position.
Public methodSkipFilter
Position the cursor, respecting scope and filter conditions.
Public methodSkipRaw
Position the cursor regardless of scope and filter conditions.
Public methodSkipScope
Position the cursor relative to its current position within the current scope.
Public methodSort
Physically reorder a table.
Public methodSyncChildren
Force relational movement in child work areas to synchronize them with the parent work area.
Public methodTrans
Copy one or more rows from one work area to another.
Public methodTransRec
Copy a single row from one work area to another.
Public methodUnLock
Release locks.
Public methodZap
Physically remove all rows from a table.
Top
Fields
  NameDescription
Public field_Fields
List of Fields
Top
See Also