DbServer.WhileBlock Property (Typed) | |
The "WHILE block" component of the "general server scope," which affects several bulk processing methods if they are called with no explicit scope
Namespace:
XSharp.VO.SDK
Assembly:
XSharp.VORDDClasses (in XSharp.VORDDClasses.dll) Version: 2.19
Syntax VIRTUAL PROPERTY WhileBlock AS USUAL GET SET
public virtual Usual WhileBlock { get; set; }
Request Example
View SourceProperty Value
Type:
UsualThe "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:
1
2oDB:WhileBlock := {|| Last == "Smith"}
3oDB:Scope := DBSCOPEALL
4oDB:Recall()
See Also