GetBorderStyle method (DataWindows)
Description
Reports the border style of a column in a DataWindow control
or DataStore object.
Controls
DataWindow type |
Method applies to |
---|---|
PowerBuilder |
DataWindow control, DataWindowChild object, DataStore |
Web ActiveX |
DataWindow control, DataWindowChild object |
Syntax
[PowerBuilder]
1 |
border <span>dwcontrol</span>.<span>GetBorderStyle </span>( integer <span>column</span> )<br>border <span>dwcontrol</span>.<span>GetBorderStyle</span> ( string <span>column</span> ) |
[Web ActiveX]
1 |
number <span>dwcontrol</span>.<span>GetBorderStyle </span>( number <span>column</span> )<br>number <span>dwcontrol</span>.<span>GetBorderStyle </span>( string <span>column</span> ) |
Argument |
Description |
---|---|
dwcontrol |
A reference to a DataWindow control, |
column |
The column for which you want to obtain |
Return Values
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.
Examples
This code gets the border style for the current column:
1 |
border B2 |
1 |
B2 = dw_emp.<span>GetBorderStyle</span>(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 |
border B2 |
1 |
B2 = dw_emp.<span>GetBorderStyle</span>(2) |
1 |
IF B2 = NoBorder! THEN |
1 |
dw_emp.SetBorderStyle(2, ShadowBox!) |
1 |
END IF |