Syntax 3 For
the fill pattern of a data point
Description
Obtains the fill pattern 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 FillPattern fillvariable ) |
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 fill |
datapointnumber |
The number of the data point for which you want the |
fillvariable |
In PowerBuilder, a variable of type FillPattern in For |
Return value
Returns 1 if it succeeds and -1 if an error occurs. In
PowerBuilder, GetDataStyle stores a value of the FillPattern enumerated
datatype representing the fill pattern used for the specified data
point. If any argument’s value is null, GetDataStyle returns
null.
Examples
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) |
See also