DbServer.Scope Property | |
The "scope" component of the "general server scope," which affects several bulk processing methods if they are called with no explicit scope. The initial value of the scope is NIL.
Namespace:
VO
Assembly:
VORDDClasses (in VORDDClasses.dll) Version: 2.19
Syntax VIRTUAL PROPERTY Scope AS USUAL GET SET
public virtual Usual Scope { get; set; }
Request Example
View SourceProperty Value
Type:
UsualThe "scope" component of the "general server scope," which affects several bulk processing methods if they are called with no explicit scope. The initial value of the scope is NIL.
Remarks
The following constants represent the range of records to process, providing the same functionality as the ALL, REST and NEXT clauses of record processing commands:
Constant | 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. |
Examples
This example illustrates how various Scope values affect the extent of a recall operation:
1
2oDB:ForBlock := {|| Last == "Smith"}
3oDB:Scope := DBSCOPEREST
4oDB:Recall()
5
6oDB:WhileBlock := {|| Last == "Smith"}
7oDB:Scope := 10
8oDB:Recall()
See Also