accessColumn

accessColumn(column: Integer): JadeTableColumn updating;

The accessColumn method of the JadeTableSheet class returns a reference to the JadeTableColumn object for the requested column on that sheet. This method also sets the Table class accessedColumn property to the returned column, allowing subsequent reuse of that object.

Storing a reference to a returned column causes problems unless you take a copy of that column, as there is one JadeTableColumn object for each Table control only.

Your logic must delete cloned columns.

The code fragment in the following example shows the use of the accessColumn method.

while index <=10 do
    col := table1.accessColumn(index);
    if index = 6 then
        col.sortOrder       := 1;
        col.sortType        := SortType_Time;
        table1.sortAsc[1]   := true;
        table1.sortCased[1] := true;
    endif;
endwhile;

See also the JadeTableSheet class accessCell and accessRow methods and the Table class accessCell, accessColumn, accessRow, and accessSheet methods.