Syntax 3: For the fill pattern or symbol of a data point
Description
Obtains the fill pattern or symbol of a data point in a
graph.
Applies to
Graph controls in windows and user objects, and graphs in
DataWindow controls
Syntax
|
1 |
controlname.GetDataStyle ( { graphcontrol, } seriesnumber, datapointnumber, enumvariable ) |
|
Argument |
Description |
|---|---|
|
controlname |
The name of the graph for which you want the fill |
|
graphcontrol (DataWindow control only) (optional) |
A string whose value is the name of the graph (in the |
|
seriesnumber |
The number of the series in which you want the fill |
|
datapointnumber |
The number of the data point for which you want the fill |
|
enumvariable |
The variable in which you want to store the data style. |
Return value
Integer.
Returns 1 if it succeeds and -1 if an error occurs. Stores,
according to the type of enumvariable, a value of that enumerated
datatype representing the fill pattern or symbol used for the specified
data point. If any argument’s value is null, GetDataStyle returns
null.
Usage
For the enumerated datatype values that GetDataStyle will store in
enumvariable, see SetDataStyle.
Examples
This example gets the pattern used to fill data point 10 in the
series named Costs in the graph gr_product_data. The information is
stored in the variable data_pattern:
|
1 2 3 4 5 6 7 |
integer SeriesNbr FillPattern data_pattern // Get the number of the series SeriesNbr = gr_product_data.FindSeries("Costs") gr_product_data.GetDataStyle(SeriesNbr, 10, & data_pattern) |
This example gets the pattern used to fill data point 6 in the
series entered in the SingleLineEdit sle_series in the graph gr_depts in
the DataWindow control dw_employees. The information is assigned to the
variable data_pattern:
|
1 2 3 4 5 6 7 8 9 10 |
integer SeriesNbr FillPattern data_pattern // Get the number of the series SeriesNbr = dw_employees.FindSeries("gr_depts", & sle_series.Text) // Get the pattern dw_employees.GetDataStyle("gr_depts", SeriesNbr, & 6, data_pattern) |
These statements store in the variable symbol_type the symbol of
data point 10 in the series named Costs in the graph
gr_product_data:
|
1 2 3 4 5 6 7 |
integer SeriesNbr grSymbolType symbol_type // Get the number of the series SeriesNbr = gr_product_data.FindSeries("Costs") gr_product_data.GetDataStyle(SeriesNbr, 10, & symbol_type) |
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