SetBorderStyle
method (DataWindows)
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 |
Syntax
PowerBuilder
|
1 2 |
integer dwcontrol.SetBorderStyle ( integer column, border borderstyle ) integer dwcontrol.SetBorderStyle ( string column, border borderstyle ) |
|
Argument |
Description |
|---|---|
|
dwcontrol |
A reference to a DataWindow control, DataStore, or |
|
column |
The column in which you want to change the border |
|
borderstyle |
A value of the Border enumerated datatype identifying For a |
Return value
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
This example checks the border of column 2 in dw_emp and, if there
is no border, gives it a shadow box border:
|
1 2 3 4 |
Border B3 B3 = dw_emp.GetBorderStyle(2) IF B3 = NoBorder! THEN & dw_emp.SetBorderStyle(2, ShadowBox!) |
See also