Cicode Programming Reference > Cicode Function Categories > Process Analyst Functions Introduction > ProcessAnalystSelect

ProcessAnalystSelect

Works like the existing Cicode Function TrnSelect(). It allows a set of pens to be selected before displaying the PA page. When PageProcessAnalystPens() is called after ProcessAnalystSelect(), the pens specified by both functions will be available in the final PA display. You can also repeat the call sequence of ProcessAnalystSelect() and ProcessAnalystSetPen() multiple times to set up multiple PA objects for the same page before displaying the page.

Syntax

ProcessAnalystSelect((iWindow, sPage [, sObjName [, sClusterName [, iButtonMask [, sPAVFile [, iFileLocation]]]]]) )

iWindow:

The window number (returned from the WinNumber() function):

-3 - for the current window

-2 - For the next window displayed

sPage:

The name of the page that displays the PA.

sObjName:

The name of the PA object. If this is not specified, it is defaulted to "_TemplatePA1" which is the name used by the built-in templates.

sClusterName:

The name of the cluster that is associated with any trend tag for this PA. This is optional if you have one cluster or are resolving the trend via the current cluster context. The argument is enclosed in quotation marks "".

iButtonMask:

Bit mask for removing command buttons from the PA, bit flags as shown below:

sPAVFile:

Name of the PAV file

iFileLocation:

PAV file location code for the PAV file, see PA doc LoadFromFile() for details.

Return Value

0 (zero) if successful, otherwise an error is returned.

Related Functions

PageProcessAnalyst, PageProcessAnalystPens, ProcessAnalystLoadFile, ProcessAnalystPopup, ProcessAnalystSetPen, ProcessAnalystWin, TrnSetPen, WinNewAt

See Also

Process Analyst Functions