Click or drag to resize

DataColumn.SetCaption Method

X#
Set the caption for the data column.

Namespace:  VO
Assembly:  VOGUIClasses (in VOGUIClasses.dll) Version: 2.21
Syntax
 VIRTUAL METHOD SetCaption(
	cText,
	kAlignment
) AS USUAL CLIPPER
Request Example View Source

Parameters

cText (Optional)
Type: Usual
The text to be used as the caption. If omitted, the data browser uses the caption in the hyperlabel.
kAlignment (Optional)
Type: Usual
One of the following constants representing the alignment of the caption for the data column:

Return Value

Type: Usual
Remarks
ConstantDescription
GBAALIGNCENTERCenter aligned
GBAALIGNLEFT Left aligned (This is the default for text.)
GBAALIGNRIGHT Right aligned (This is the default for numeric data.)
Setting a blank caption ("") causes the caption of the data column to be displayed with no caption. Setting a null caption causes the caption to be hidden. By embedding newline characters in the caption string, the caption field changes height to accommodate multiple lines.
See Also