GetColumn

Description

Obtains the number of the current column. The current column is the column that has focus.

Applies to

Web DataWindow client control

Syntax

number objdwcontrol.GetColumn ( )

Argument

Description

objdwcontrol

A reference to a Web DataWindow client control

Returns

Returns the number of the current column in objdwcontrol. Returns 0 if no column is current (because all the columns have a tab value of 0, making all of them uneditable), and -1 if an error occurs.

Usage

GetColumn and GetClickedColumn, when called in the Clicked event, can return different values. The column the user clicked does not become current until after the event.

NoteThe current column A column becomes the current column after the user tabs to it or clicks it or if a script calls the SetColumn method. A column cannot be current if it cannot be edited (if it has a tab value of 0).

A DataWindow always has a current column, even when the control is not active, as long as there is at least one editable column.