GetBandAtPointer  GetChanges

Chapter 9: Methods for the DataWindow Control

GetBorderStyle

Description

Reports the border style of a column in a DataWindow control or DataStore object.

Syntax

border dwcontrol.GetBorderStyle ( integer column )
border dwcontrol.GetBorderStyle ( string column ) 

Argument

Description

dwcontrol

A reference to a DataWindow control, DataStore, or child DataWindow.

column

The column for which you want to obtain the border style. Column can be a column number or a column name.

Returns

Returns the border style of column in dwcontrol as a value of the Border enumerated datatype. For a list of possible values, see Border. Returns NULL if it fails. If any argument is NULL, the method returns NULL.

Examples

Example 1

This code gets the border style for the current column:

border B2

B2 = dw_emp.GetBorderStyle(dw_emp.GetColumn())

Example 2

This code tests the border of column 2 in dw_emp and, if there is no border, displays a shadow box border:

border B2

B2 = dw_emp.GetBorderStyle(2)

IF B2 = NoBorder! THEN

		dw_emp.SetBorderStyle(2, ShadowBox!)

END IF

See also





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

View this book as PDF