Progress
Language Reference
OS-ERROR Function
Returns a Progress error code that indicates whether an execution error occurred during the last OS-APPEND, OS-COPY, OS-CREATE-DIR, OS-DELETE, OS-RENAME or SAVE CACHE statement.
SYNTAX
EXAMPLE
The following procedure prompts the user to enter a file to delete, attempts to delete the file, and then calls the OS-ERROR function to check for an execution error. If an error occurs, the procedure branches based on the error number and responds accordingly.
NOTES
- This function returns 0 if no error occurred.
- Use this function immediately following an OS-APPEND, OS-COPY, OS-CREATE-DIR, OS-DELETE, OS-RENAME, or SAVE CACHE statement to determine whether an error occurred during the statement’s execution. If you do not, the next use of one of these statements overwrites the previous error code.
- Table 34 lists the Progress error codes that the OS-ERROR function can return.
SEE ALSO
OS-APPEND Statement, OS-COPY Statement, OS-CREATE-DIR Statement, OS-DELETE Statement, OS-RENAME Statement, SAVE CACHE Statement
Copyright © 2004 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |