Purpose
Creates an object of class bCheckColumn.
Class
Type
Method
Syntax
bCheckColumn{
<oOwner>,
<oServer>,
<symField>
} Æ oCheckColumn
Arguments
| <oOwner> | The owner of the column. This is the bBrowser in which the column is to be used. | 
| Data Type: | Object | 
| <oServer> | The server with which the column is to be linked. | 
| Data Type: | Object | 
| <symField> | The field name of the column. The column can be identified with the field name. | 
| Data Type: | Symbol | 
Return Value
| oCheckColumn | The created object of the class bCheckColumn. | 
| Data Type: | bCheckColumn | 
Description
bCheckColumn:Init() creates a new object of the class bCheckColumn and initializes it.
After creating an object of the class bCheckColumn the access bDataColumn:ViewValueAs contains the value #CheckBox.
Samples
In the following sample a bCheckColumn column is created.
LOCAL odbsCUSTOMER AS DBServer
LOCAL oBrowser AS bBrowser
LOCAL oColumn AS bCheckColumn
// Create DBServer
odbsCUSTOMER := DBServer{"CUSTOMER"}
// Create browser and enable editing
oBrowser := bBrowser{oOwner,;
1000,;
Point{0, 0},;
Dimension{300, 250}}
oBrowser:Editable := TRUE
// Set DBServer in browser and show the browser
oBrowser:Use(odbsCUSTOMER)
oBrowser:Show()
// Create bCheckColumn and open it in browser
oColumn := bCheckColumn{oBrowser, odbsCUSTOMER, #Check}
oColumn:Width := 30
oBrowser:AddColumn(oColumn)
oBrowser:OpenColumn(oColumn, 1)
See Also
Page url: http://www.YOURSERVER.com/index.html?bcheckcolumn_init.htm