Reports the border style of a column in a DataWindow control or DataStore object.
DataWindow type |
Method applies to |
---|---|
PowerBuilder |
DataWindow control, DataWindowChild object, DataStore object |
Web ActiveX |
DataWindow control, DataWindowChild object |
border dwcontrol.GetBorderStyle ( integer column ) border dwcontrol.GetBorderStyle ( string column )
number dwcontrol.GetBorderStyle ( number column ) number 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 the border style of column in dwcontrol as a value of the Border enumerated datatype (PowerBuilder) or as a number (Web ActiveX). For a list of possible values, see Border.
Returns null if it fails. If any argument is null, the method returns null.
This code gets the border style for the current column:
border B2
B2 = dw_emp.GetBorderStyle(dw_emp.GetColumn())
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