PROGRAM_ID

Syntax

Example

Description/Remarks

PROGRAM_ID

PROGRAM_ID

This command returns a value to indicate which module is running the current template: SPC Data Entry, SPC Charts and Reports (when charting external data), or inRealTime.

If the current module is running in PDA mode, this command returns a negative number.

Return value:

Module indicated:

 1

SPC Data Entry

-1

SPC Data Entry in PDA mode

 2

SPC Charts and Reports

-2

SPC Charts and Reports in PDA mode

 3

inRealTime

-3

inRealTime in PDA mode

You can combine this with the IF command to perform different actions based on which module is running the template, the current mode of display (normal mode or PDA mode), or both.