Accessing data properties

To access properties related to a graph’s data during execution, you use PowerScript graph functions. The graph functions related to data fall into several categories:

How to use the functions

To call functions for a graph in a graph control, use the following syntax:

graphControlName.FunctionName ( Arguments )

For example, to get a count of the categories in the window graph gr_printer, code:

Ccount = gr_printer.CategoryCount()

NoteDifferent syntax for graphs in DataWindows The syntax for the same functions is more complex when the graph is in a DataWindow, like this:

DataWindowName.FunctionName ( "graphName", otherArguments… )

For more information, see the DataWindow Programmers Guide.