column

Type: Integer

Availability: Read or write at run time only

The column property of the Table class contains the current column on the current sheet of a table control.

The column, row, and sheet properties define the current cell when accessing certain properties within the table control; for example, the inputType, text, picture, and selected properties of a cell.

If the current cell is visible on the table and the table control has focus, the cell has a focus rectangle painted on it. Column access is 1-relative.

Changing the value of the column property does not cause the table to be repainted.

The following examples show the use of the column property.

while counter >= 1 do
    table1.column   := counter;
    table1.selected := true;
    counter         := counter - 1;
endwhile;

cdtable_keyDown(table:   Table input;
                keyCode: Integer io;
                shift:   Integer) updating;
vars
    cd    : CD;
    count : Integer;
begin
    if keyCode = J_key_Stop and table.row > 1 and table.column = 2
                 and table.itemObject <> null then
        cd := table.itemObject.CD;
        count := app.msgBox("Delete cd " & cd.title & "?", "Confirm Delete",
                            MsgBox_Yes_No);
        if count = MsgBox_Return_Yes then
            beginTransaction;
                app.myCDList.remove(cd);
                cd.trackList.purge;
                delete cd;
            commitTransaction;
            table.deleteRow(table.row);
        endif;
    endif;
end;