Table Of Contents

Warning about the Abort Button

Last Modified: April 10, 2020

The Abort button stops a program before it completes execution.

Aborting a program that uses external resources, such as external hardware or file I/O operations, might leave the resources in an unknown state and cause the program to return errors the next time you access the resources. An alternative to using the Abort button is to enclose code that uses external resources in a While Loop with a Stop button. Using the Stop button instead of the Abort button cleans up external resources before stopping execution.


If you are aborting a program because the code uses a Flat Sequence Structure with many frames, consider using a State Machine design pattern instead.

Recently Viewed Topics