Syntax 4 For the symbol of a data point
Description
Obtains the symbol 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 grSymbolType <span>symbolvariable</span> ) |
[Web ActiveX]
1 |
number <span>dwcontrol</span>.<span>GetDataStyleSymbol</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 |
symbolvariable |
In PowerBuilder, a variable of type grSymbolType In the Web ActiveX, call GetDataStyleSymbolValue to get the value instead of using For a list of values, see grSymbolType. |
Return Values
Returns 1 if it succeeds and -1 if an error occurs. Stores,
according to the type of symbolvariable, a
value of that enumerated datatype representing the symbol used for
the specified data point. If any argument’s value is null, GetDataStyle returns
null.
Examples
These statements store the symbol for a data point
in the variable symbol_type. The data point is the sixth
point in the series named in the SingleLineEdit sle_series
in the graph gr_depts in the DataWindow control dw_employees:
1 |
integer SeriesNbr |
1 |
grSymbolType symbol_type |
1 |
1 |
// Get the number of the series |
1 |
SeriesNbr = dw_employees.FindSeries("gr_depts", & |
1 |
sle_series.Text) |
1 |
1 |
// Get the symbol |
1 |
dw_employees.<span>GetDataStyle</span>("gr_depts", SeriesNbr, & |
1 |
6, symbol_type) |