Syntax 3 For the fill pattern of a series
Description
Obtains the fill pattern of a series in a graph.
Controls
PowerBuilder DataWindow DataWindow
control
DataWindow Web ActiveX DataWindow
control
Syntax
[PowerBuilder]
1 |
integer <span>dwcontrol</span>.<span>GetSeriesStyle</span> ( string <span>graphcontrol</span>, string <span>seriesname</span>, REF FillPattern <span>fillvariable</span> ) |
[Web ActiveX]
1 |
number <span>dwcontrol</span>.<span>GetSeriesStyleFill</span> ( string <span>graphcontrol</span>, string <span>seriesname</span> ) |
Argument |
Description |
---|---|
dwcontrol |
A reference to the DataWindow control |
graphcontrol |
A string whose value is the name of the |
seriesname |
A string whose value is the name of the |
fillvariable |
In PowerBuilder, a variable of type FillPattern |
Return Values
Returns 1 if it succeeds and -1 if an error occurs. In PowerBuilder,
stores in fillvariable identifying the fill
pattern for the specified series. If any argument’s value
is null, GetSeriesStyle returns null.
Examples
This example stores in the variable data_pattern
the fill pattern for the series under the pointer in the graph gr_depts
in the DataWindow control dw_employees. It then sets the
fill pattern for the series Total Salary in the graph gr_dept_data
to that pattern:
1 |
string SeriesName |
1 |
integer SeriesNbr, Data_Point |
1 |
FillPattern data_pattern |
1 |
grObjectType MouseHit |
1 |
1 |
MouseHit = dw_employees.ObjectAtPointer("gr_depts" , & |
1 |
SeriesNbr, Data_Point) |
1 |
1 |
IF MouseHit = TypeSeries! THEN |
1 |
SeriesName = & |
1 |
dw_employees.SeriesName("gr_depts" , SeriesNbr) |
1 |
1 |
dw_employees.<span>GetSeriesStyle</span>("gr_depts" , & |
1 |
SeriesName, data_pattern) |
1 |
1 |
gr_dept_data.SetSeriesStyle("Total Salary", & |
1 |
data_pattern) |
1 |
END IF |