GetBorderStyle
method (DataWindows)
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 |
Syntax
PowerBuilder
|
1 2 |
border dwcontrol.GetBorderStyle ( integer column ) border dwcontrol.GetBorderStyle ( string column ) |
|
Argument |
Description |
|---|---|
|
dwcontrol |
A reference to a DataWindow control, DataStore, or |
|
column |
The column for which you want to obtain the border |
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:
|
1 2 |
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:
|
1 2 3 4 5 |
border B2 B2 = dw_emp.GetBorderStyle(2) IF B2 = NoBorder! THEN dw_emp.SetBorderStyle(2, ShadowBox!) END IF |
See also