Syntax 3 For
the fill pattern of a series
Description
Obtains the fill pattern of a series in a graph.
Applies to
PowerBuilder DataWindow
DataWindow control
Syntax
PowerBuilder
1 |
integer dwcontrol.GetSeriesStyle ( string graphcontrol, string seriesname, REF FillPattern fillvariable ) |
Argument |
Description |
---|---|
dwcontrol |
A reference to the DataWindow control containing |
graphcontrol |
A string whose value is the name of the graph in |
seriesname |
A string whose value is the name of the series for |
fillvariable |
In PowerBuilder, a variable of type FillPattern in |
Return value
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 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
string SeriesName integer SeriesNbr, Data_Point FillPattern data_pattern grObjectType MouseHit MouseHit = dw_employees.ObjectAtPointer("gr_depts" , & SeriesNbr, Data_Point) IF MouseHit = TypeSeries! THEN SeriesName = & dw_employees.SeriesName("gr_depts" , SeriesNbr) dw_employees.GetSeriesStyle("gr_depts" , & SeriesName, data_pattern) gr_dept_data.SetSeriesStyle("Total Salary", & data_pattern) END IF |
See also