Syntax 4 For the symbol of a series
Description
Obtains the symbol used for data points in 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 grSymbolType <span>symbolvariable</span> ) |
[Web ActiveX]
1 |
number <span>dwcontrol</span>.<span>GetSeriesStyleSymbol</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 |
symbolvariable |
In PowerBuilder, the variable of type For the Web ActiveX, call GetSeriesStyleSymbolValue to get the value. For a list of values, see grSymbolType. |
Return Values
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:
1 |
string SeriesName |
1 |
integer SeriesNbr, Data_Point |
1 |
grSymbolType symbol |
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 |
      dw_employees.<span>GetSeriesStyle</span>("gr_depts" , & |
1 |
SeriesName, symbol |
1 |
      gr_dept_data.SetSeriesStyle("Total Salary", & |
1 |
symbol) |
1 |
END IF |