Purpose

FNEXIT terminates a function immediately.
 

Syntax

FNEXIT{exit code}
 

Operation

exit code is an optional argument to the calling function.
 

Remarks

The exit from a function is immediate. Function Exit logic is called immediately after FNEXIT is executed. Function Exit logic is skipped when a fatal error occurs. 

Data is not written to files for the current cycle.

FNEXIT cannot be used in On Function Exit logic.

LSCALL and FLD statements must not be used in On Function Exit logic to re-enter the function being exited.

Example

If LEN (@FVNM) > 18 THEN
     MSG(25)
     FNEXIT
ELSE ......

If the length of @FVNM is greater than 18, a message is output and the function exits.
 

Comment on this topic

Topic ID: 520058

 
 
 

Table of Contents

Index

Glossary

-Search-

Back