
Click above to get retro games delivered to your door ever month!
X-Hacker.org- RLIB 3.0a Reference - <b>rlib error codes</b>
[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
RLIB Error Codes
All RLIB functions are designed to handle runtime errors with as much
grace as possible. When a runtime error occurs, the programmer has a
choice of trapping these errors or letting the error crash your
program. RLIB functions use the former method.
The most frequent errors that occur when calling Clipper functions are
parameter omission and/or type mismatches. Most of the RLIB functions
test for the proper number of parameters and for the proper parameter
types. If a required parameter is omitted or if a parameter type is
mismatched, and the function cannot rely on a default value, the
function will simply return. If the function returns a value that is
indicative of success, the return value in such a case will be the
failure value.
As do all Clipper functions, every RLIB function must return some
value. Additionally, as with functions in Clipper and C, RLIB
functions may return ONLY ONE VALUE.
Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson