Progress
Programming
Handbook
Error Handling
Each method of the query object, buffer object, and buffer-field object that can have errors returns a value of type LOGICAL that you can test. If an error occurs, the method returns FALSE, but does not automatically raise the error condition. Progress Software Corporation (PSC) recommends that you test the return value of methods like QUERY–PREPARE, where an error causes subsequent OPENs, GET–NEXTs, etc. to fail.
The following code fragments demonstrates checking the return value after the QUERY–PREPARE method:
The following code fragment demonstrates checking the return value after the QUERY–OPEN method:
Copyright © 2004 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |