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 |
Syntax
PowerBuilder
string dwcontrol.GetColumnName ( )
Return value
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, the method returns null.
Usage
For information on the current column, see GetColumn.
Examples
These statements return the name of the current column in dw_Employee:
string ls_ColName ls_ColName = dw_employee.GetColumnName()
See also