SetBorderStyle

Description

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

Applies to

DataWindow type

Method applies to

PowerBuilder

DataWindow control, DataWindowChild object, DataStore object

Web ActiveX

DataWindow control, DataWindowChild object

Syntax

PowerBuilder

integer dwcontrol.SetBorderStyle ( integer column, border borderstyle )
integer dwcontrol.SetBorderStyle ( string column, border borderstyle )

Web ActiveX

number dwcontrol.SetBorderStyle ( number column, 
	number borderstyle ) 
number dwcontrol.SetBorderStyle ( string column, number borderstyle ) 

Argument

Description

dwcontrol

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

column

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

borderstyle

A value of the Border enumerated datatype (PowerBuilder) or an integer (Web ActiveX) identifying the border style you want to use for the column.

For a list of valid values, see Border.

Returns

Returns 1 if it succeeds and –1 if an error occurs. If any argument’s value is null, in PowerBuilder and JavaScript the method returns null.

Examples

Example 1

This example checks the border of column 2 in dw_emp and, if there is no border, gives it a shadow box border:

Border B3

B3 = dw_emp.GetBorderStyle(2)

IF B3 = NoBorder! THEN &

		dw_emp.SetBorderStyle(2, ShadowBox!)

See also