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.
Controls
Graph controls in windows and user objects, and graphs in
DataWindow controls
Syntax
|
1 |
<span>controlname</span>.<span>GetDataStyle</span> ( { <span>graphcontrol</span>, } <span>seriesnumber</span>,<br> <span>datapointnumber</span>, <span>enumvariable</span> ) |
|
Argument |
Description |
|---|---|
|
controlname |
The name of the graph for which you want |
|
graphcontrol (DataWindow control |
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 |
|
enumvariable |
The variable in which you want to store |
Return Values
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 |
integer SeriesNbr |
|
1 |
FillPattern data_pattern |
|
1 |
|
1 |
// Get the number of the series |
|
1 |
SeriesNbr = gr_product_data.FindSeries("Costs") |
|
1 |
gr_product_data.<span>GetDataStyle</span>(SeriesNbr, 10, & |
|
1 |
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 |
integer SeriesNbr |
|
1 |
FillPattern data_pattern |
|
1 |
|
1 |
// Get the number of the series |
|
1 |
SeriesNbr = dw_employees.FindSeries("gr_depts", & |
|
1 |
sle_series.Text) |
|
1 |
|
1 |
// Get the pattern |
|
1 |
dw_employees.<span>GetDataStyle</span>("gr_depts", SeriesNbr, & |
|
1 |
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 |
integer SeriesNbr |
|
1 |
grSymbolType symbol_type |
|
1 |
|
1 |
// Get the number of the series |
|
1 |
SeriesNbr = gr_product_data.FindSeries("Costs") |
|
1 |
gr_product_data.<span>GetDataStyle</span>(SeriesNbr, 10, & |
|
1 |
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 |
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) |