Sets the border style of a column in a DataWindow control or DataStore.
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 child DataWindow. |
column |
The column in which you want to change the border style. Column can be a column number or a column name. |
borderstyle |
A value of the Border enumerated datatype identifying the border style you want to use for the column. For a list of valid values, see Border. |
Returns 1 if it succeeds and -1 if an error occurs. If any argument’s value is NULL, the method returns NULL.
This example checks the border of column 2 in dw_emp and, if there is no border, gives it a shadow box border:
Border B3
B3 = dw_emp.GetBorderStyle(2)
IF B3 = NoBorder! THEN &
dw_emp.SetBorderStyle(2, ShadowBox!)
Copyright © 2004. Sybase Inc. All rights reserved. |
![]() |