Method XbpBrowse():setColumn() Foundation
Replaces a column (XbpColumn object) within an XbpBrowse object.
:setColumn( <nColPos>, <oNewXbpColumn> ) --> oOldXbpColumn
or
:setColumn( <nColPos>, <bDataLink>, ;
[<nWidth>], ;
[<cHeading|nHeadID>], ;
[<cFooting|nFootID>], ;
[<nType>] ) --> oOldXbpColumn
:setColumn() returns a reference to the replaced XbpColumn object.
:setColumn() replaces an XbpColumn object within an XbpBrowse object. The numeric value <nColPos> must be passed. It indicates the position of the column object to be replaced. The second parameter must be a configured XbpColumn object or a data code block. In the latter case the XbpBrowse object creates an XbpColumn object and replaces it with an existing one.
Except for the first parameter, the parameters of :setColumn() are identical to the ones of :addColumn() and are described there.
Replacing a column in a browse implicitly defines the column's unique position in the browser's column array. This position is reflected in the :index member variable of a column, and is used as the identifier in methods like :delColumn().
If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.