Home

Services

Sample ASPECT code

ASPECT tips and tricks

ASPECT resources on the web

General Procomm Plus information

Procomm Plus Support Files

Many of the ASPECT commands will report success or failure after they have completed execution. You can determine if a command returns success or failure by viewing the discussion of that command in the ASPECT help file and looking for a SF icon in the upper left corner. Checking for success or failure is always a good idea. There are two different methods to do so. The first uses a structure as such:

fopen 0 Fname READ TEXT
if success
;command was successful, do necessary steps.
else ;command failed, perform error handling.
endif

The second way to check for success or failure looks like this:

if fopen 0 Fname READ TEXT   
;command was successful, do necessary steps.
else ;command failed, perform error handling.
endif

When I am debugging a script, I often use the usermsg command to output either success or failure in a message box so I can immediately determine what execution path my script took.


This document maintained by John Schultz. Material Copyright © 2002-2017
Procomm Plus and ASPECT are registered trademarks of Symantec Corporation