Description
Obtains the symbol used for data points in a series in a graph.
Applies to
PowerBuilder DataWindow
DataWindow control
Syntax
PowerBuilder
integer dwcontrol.GetSeriesStyle ( string graphcontrol, string seriesname, REF grSymbolType symbolvariable )
Argument |
Description |
---|---|
dwcontrol |
A reference to the DataWindow control containing the graph. |
graphcontrol |
A string whose value is the name of the graph in the DataWindow control. |
seriesname |
A string whose value is the name of the series for which you want the style information. |
symbolvariable |
In PowerBuilder, the variable of type grSymbolType in which you want to store the symbol value. For a list of values, see grSymbolType. |
Return value
Returns 1 if it succeeds and -1 if an error occurs. In PowerBuilder, stores in symbolvariable a value of the grSymbolType enumerated datatype for the symbol used 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:
string SeriesName integer SeriesNbr, Data_Point grSymbolType symbol 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, symbol gr_dept_data.SetSeriesStyle("Total Salary", & symbol) END IF
See also