Syntax 3 For the fill pattern of a data point
Description
Obtains
the fill pattern of 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 FillPattern <span>fillvariable</span> ) |
[Web ActiveX]
1 |
number <span>dwcontrol</span>.<span>GetDataStyleFill</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 |
fillvariable |
In PowerBuilder, a variable of type FillPattern In the Web ActiveX, call GetDataStyleFillPattern to get the value. For a list of values, see FillPattern. |
Return Values
Returns 1 if it succeeds and -1 if an error occurs. In PowerBuilder, GetDataStyle stores
a value of the FillPattern enumerated datatype representing the
fill pattern used for the specified data point. If any argument’s
value is null, GetDataStyle returns null.
Examples
This example gets the pattern used to fill 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 assigned to the variable data_pattern:
1 |
integer SeriesNbr |
1 |
FillPattern data_pattern |
1 |
1 |
// Get the number of the series |
1 |
SeriesNbr = dw_employees.FindSeries("gr_depts", & |
1 |
sle_series.Text) |
1 |
1 |
// Get the pattern |
1 |
dw_employees.<span>GetDataStyle</span>("gr_depts", SeriesNbr, & |
1 |
6, data_pattern) |