Method TBrowse():setColumn() Foundation

Replaces a column (TBColumn object) in a TBrowse object.

Syntax
:setColumn( <nColPos>, <oNewTBColumn> ) --> oOldTBColumn
Parameters
<nColPos>
<nColPos> is a numeric value indicating the position at which <oTBColumn> should be replaced.
<oNewTBColumn>
<oNewTBColumn> is the TBColumn object used to replace another TBColumn object.
Return

:setColumn() returns a reference to the TBColumn object that was replaced.

Description

:setColumn() replaces an existing TBColumn object with a different one. A numeric value must be passed, which indicates the column object to replace. A reference to a TBColumn object must also be passed, and is the object used to replace the existing object. Since :setColumn() returns a reference to the replaced object, that object can be stored in a variable or array and used later with :addColumn() or :insColumn() on a valid TBrowse object. After calling :setColumn() the TBrowse object is reconfigured which causes the data source to be re-read and the browse window to be redisplayed during the next stabilization.

Feedback

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.