Description
Reports the border style of a column in a DataWindow control or DataStore object.
Applies to
DataWindow type |
Method applies to |
---|---|
PowerBuilder |
DataWindow control, DataWindowChild object, DataStore object |
Syntax
PowerBuilder
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. |
Return value
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
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
See also