Click or drag to resize

DbServer.Total Method

Aggregate records by key value, producing grouped summarizations, and write the aggregate records to another database.

Namespace:  VO
Assembly:  VORDDClasses (in VORDDClasses.dll) Version: 2.7
	oFSTarget AS USUAL := NIL,
	cbKeyField AS USUAL := NIL,
	aFieldList AS USUAL := NIL,
	cbForBlock AS USUAL := NIL,
	cbWhileBlock AS USUAL := NIL,
	uScope AS USUAL := NIL
Request Example View Source


oFSTarget (Optional)
Type: Usual
The file to which the summary data is written.
cbKeyField (Optional)
Type: Usual
The key field in this server that is the basis for the summarization.  Note that for the summarization to produce correct results, the table should be indexed or sorted on this key field.
aFieldList (Optional)
Type: Usual
An array of the fields that are to be summarized.
cbForBlock (Optional)
Type: Usual
The condition evaluated for each record in the scope; if TRUE, the record is included in the processing.  It provides the same functionality as the FOR clause of record processing commands.
cbWhileBlock (Optional)
Type: Usual
The condition evaluated for each record from the current record until the condition returns FALSE.  It provides the same functionality as the WHILE clause of record processing commands.
uScope (Optional)
Type: Usual
The range of records to process, providing the same functionality as the ALL, REST and NEXT clauses of record processing commands Value Description DBSCOPEALL The scope is all the records in the table.  This is the default, although if a WHILE condition is specified, the scope becomes DBSCOPEREST. DBSCOPEREST The scope is the remaining records in the table from the current position. <nRecords> The scope is the next <nRecords> records.

Return Value

Type: Usual
TRUE if successful; otherwise, FALSE.  Note that after a FALSE indication of a scoped operation, some records can have been written to the target file: the operation can have failed halfway through because of lock conflicts or technical problems.
Sends a NotifyIntentToMove message before the operation.  Sends a NotifyRecordChange message upon completion.
This method does not open the new file, it simply creates the file on disk.  If you want to open it afterwards, you simply instantiate it directly.
1IF oDB1:Total(oFSTarget)
2oDB2 := DBServer{oFSTarget}
See Also