Click or drag to resize

DataBrowser.AddColumn Method (Typed)

X#
Add one or more columns to a data browser.

Namespace:  XSharp.VO.SDK
Assembly:  XSharp.VOGUIClasses (in XSharp.VOGUIClasses.dll) Version: 2.19
Syntax
 VIRTUAL METHOD AddColumn(
	oGColumn,
	nIndex
) AS USUAL CLIPPER
Request Example View Source

Parameters

oGColumn (Optional)
Type: Usual
The data column to be added or the array of data columns to be added.
nIndex (Optional)
Type: Usual
The column after which the new column or columns will be inserted. This value can be a string or symbol representing the name of the column, a number representing its column number, or an oDataColumn object identifying the column. If you specify a number, you should note that column numbering begins at 1 (which refers to the first column in the logical sequence, not necessarily the leftmost column from the visual viewpoint). If omitted, new columns are added after the last column.

Return Value

Type: Usual
TRUE if successful; otherwise, FALSE.
Remarks
When columns are inserted in the middle of the sequence, the reference numbers for any trailing columns are incremented. This is one reason why columns should be referenced by name, rather than number. Also, note that while columns can be repositioned from a visual viewpoint, they retain their logical position in the browser.
See Also