Obtains the name of the current column. The current column is the column that has the focus.
DataWindow type |
Method applies to |
---|---|
PowerBuilder |
DataWindow control, DataWindowChild object, DataStore object |
Web |
Server component |
Web ActiveX |
DataWindow control, DataWindowChild object |
PowerBuilder, Web DataWindow, and WebActiveX
string dwcontrol.GetColumnName ( )
Argument |
Description |
---|---|
dwcontrol |
A reference to a DataWindow control DataStore, or child DataWindow |
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.
For information on the current column, see GetColumn.
These statements return the name of the current column in dw_Employee:
string ls_ColName
ls_ColName = dw_employee.GetColumnName()