Syntax 4 For
the symbol of a data point
Description
Obtains the symbol of a data point in a graph.
Applies to
PowerBuilder DataWindow
DataWindow control
Syntax
PowerBuilder
|
1 |
integer dwcontrol.GetDataStyle ( string graphcontrol, integer seriesnumber, integer datapointnumber, REF grSymbolType symbolvariable ) |
|
Argument |
Description |
|---|---|
|
dwcontrol |
A reference to the DataWindow control containing |
|
graphcontrol |
A string whose value is the name of the graph in |
|
seriesnumber |
The number of the series in which you want the |
|
datapointnumber |
The number of the data point for which you want the |
|
symbolvariable |
In PowerBuilder, a variable of type grSymbolType in For a list |
Return value
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 2 3 4 5 6 7 8 9 10 |
integer SeriesNbr grSymbolType symbol_type // Get the number of the series SeriesNbr = dw_employees.FindSeries("gr_depts", & sle_series.Text) // Get the symbol dw_employees.GetDataStyle("gr_depts", SeriesNbr, & 6, symbol_type) |
See also