Click or drag to resize

DbServer.WhileBlock Property

The "WHILE block" component of the "general server scope," which affects several bulk processing methods if they are called with no explicit scope

Namespace:  VO
Assembly:  VORDDClasses (in VORDDClasses.dll) Version: 2.7
Syntax
 VIRTUAL PROPERTY WhileBlock AS USUAL GET SET 
Request Example View Source

Property Value

Type: Usual
The "WHILE block" component of the "general server scope," which affects several bulk processing methods if they are called with no explicit scope
Remarks
The "WHILE block" component of the "general server scope," which affects several bulk processing methods if they are called with no explicit scope.  The access always returns a code block. Specifying a WHILE block makes the method process all remaining records until the WHILE block evaluates FALSE, subject to other scope settings, of course.  Specifying a WHILE block makes the scope default to REST.
Examples
This example assigns a code block to WhileBlock to limit the scope of a recall operation:
X#
1// RECALL WHILE Last == "Smith" ALL
2oDB:WhileBlock := {|| Last == "Smith"}
3oDB:Scope := DBSCOPEALL
4oDB:Recall()
See Also