Proc Reference > PQN Proc Commands > X

Comment on this topic

Documentation Comments

Use this form to comment on this topic. You can also provide any general observations about the Online Documentation, or request that additional information be added in a future release.

Reality V15.0 ()

X command (Proc) (m618403+x.htm)

To

Reality

Version

Topic

Submitted by

Company

Location

Email address

Comment

 

 

X

Halts execution of a Proc and returns control to TCL.

Syntax

X{text}{+}

Syntax Elements

text is the text to be displayed.

+ specifies that a RETURN will not be output and the cursor remains at the present position when control is returned to TCL.

Operation

The X command is typically used to stop a Proc if an error is found or when there are no more Proc instructions to be executed.

The optional text following the X command should be informative.

Example 1

F-OPEN 1 %1
X CANNOT OPEN FILE

In this example, the X command stops execution of the Proc if the file in %1 cannot be opened and displays a message to that effect.

Example 2

.
.
.
XEND OF PROCESSING

In this example, the X command terminates the Proc and displays a message when all the Proc instructions have been executed.

RealityV15.0Comment on this topic