Syntax 2 For the line style and width used by a data point
Description
Obtains
the line style and width for a data point in a graph.
Controls
PowerBuilder DataWindow DataWindow
control
DataWindow Web ActiveX DataWindow
control
Syntax
[PowerBuilder]
1 |
integer <span>dwcontrol</span>.<span>GetDataStyle</span> ( string <span>graphcontrol</span>, integer <span>seriesnumber</span>, integer <span>datapointnumber</span>, REF LineStyle <span>linestyle</span>, REF integer <span>linewidth</span> ) |
[Web ActiveX]
1 |
number <span>dwcontrol</span>.<span>GetDataStyleLine</span> ( string <span>graphcontrol</span>, number <span>seriesnumber</span>, number <span>datapointnumber </span> ) |
Argument |
Description |
---|---|
dwcontrol |
A reference to the DataWindow control |
graphcontrol |
A string whose value is the name of the |
seriesnumber |
The number of the series in which you |
datapointnumber |
The number of the data point for which |
linestyle |
In PowerBuilder, a variable of type LineStyle For the Web ActiveX, call GetDataStyleLineStyle to get the value. For a list of line style values, see LineStyle. |
linewidth |
In PowerBuilder, an integer variable For the Web ActiveX, call GetDataStyleLineWidth to get the value. |
Return Values
Returns 1 if it succeeds and -1 if an error occurs. In PowerBuilder,
for the specified series and data point, GetDataStyle stores
its line style in linestyle and the line’s
width in linewidth. If any argument’s
value is null, GetDataStyle returns null.
Examples
This example gets the line style and width for data
point 6 in the series entered in the SingleLineEdit sle_series
in the graph gr_depts in the DataWindow control dw_employees.
The information is stored in the variables line_style and
line_width:
1 |
integer SeriesNbr, line_width |
1 |
LineStyle line_style |
1 |
1 |
// Get the number of the series |
1 |
SeriesNbr = dw_employees.FindSeries( & |
1 |
<span>"</span>gr_depts<span>"</span>, sle_series.Text) |
1 |
1 |
// Get the line style and width |
1 |
dw_employees.<span>GetDataStyle</span>("gr_depts", SeriesNbr, & |
1 |
6, line_style, line_width) |