GetColumnName

Description

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

Applies to

DataWindow type

Method applies to

PowerBuilder

DataWindow control, DataWindowChild object, DataStore object

Web

Server component

Web ActiveX

DataWindow control, DataWindowChild object

Syntax

PowerBuilder, Web DataWindow, and WebActiveX

string dwcontrol.GetColumnName ( )

Argument

Description

dwcontrol

A reference to a DataWindow control DataStore, or child DataWindow

Returns

Returns the name of the current column in dwcontrol. Returns the empty string (“”) if no column is current or if an error occurs.

If dwcontrol is null, in PowerBuilder and JavaScript the method returns null.

Usage

For information on the current column, see GetColumn.

Examples

Example 1

These statements return the name of the current column in dw_Employee:

string ls_ColName

ls_ColName = dw_employee.GetColumnName()

See also