DataCount – PB Docs 2022

DataCount

PowerScript function

Description

Reports the number of data points in the specified series in a
graph.

Applies to

Graph controls in windows and user objects, and graphs in DataWindow
controls and DataStore objects

Syntax

Argument

Description

controlname

The name of the graph in which you want the number of data
points in a specific series, or the name of the DataWindow
control or DataStore containing the graph

graphcontrol (DataWindow control or DataStore only)

(Optional) The name of the graph in the DataWindow control
or DataStore for which you want the data point count for the
series

seriesname

A string whose value is the name of the series for which
you want the number of data points

Return value

Long.

Returns the number of data points in the specified series if it
succeeds and -1 if an error occurs. If any argument’s value is null,
DataCount returns null.

Examples

These statements store in ll_count the number of data points in the
series named Costs in the graph gr_product_data:

These statements store in ll_count the number of data points in the
series named Salary in the graph gr_dept in the DataWindow control
dw_employees:

See also

AddSeries

InsertSeries

SeriesCount


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x