GetColumn  GetContextService

Chapter 9: Methods for the DataWindow Control

GetColumnName

Description

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

Syntax

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, 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





Copyright © 2004. Sybase Inc. All rights reserved. GetContextService

View this book as PDF