Click or drag to resize

DataColumn.Block Property

X#
A code block associated with the data column. If set, it is used to filter the data in/out of the data column.

Namespace:  VO
Assembly:  VOGUIClasses (in VOGUIClasses.dll) Version: 2.19
Syntax
 VIRTUAL PROPERTY Block AS USUAL GET SET 
Request Example View Source

Property Value

Type: Usual
A code block associated with the data column. If set, it is used to filter the data in/out of the data column.
Examples
This example sets the code block for a calculated Wages column where HoursWorked and HourlyRate are fields in your database. These lines would appear inside your DataBrowser:Init() method:
X#
1oMyColumn:BlockOwner := SELF:Server    // The server object attached to the browser
2oMyColumn:Block := { | oVar | oVar:HoursWorked * oVar:HourlyRate }
3//where oVar is the BlockOwner
See Also