Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Faxual II for CA-Clipper - f2error http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 F2Error
 Get error code from last operation
------------------------------------------------------------------------------
 Syntax

    F2Error() -> nError

 Returns

    F2Error() returns an error code indicating the result of the last Faxual
    II library function call.  The error code is zero if the last function
    call was successful.

 Description

    F2Error() is used with functions that return errors.  Those functions
    are specifically indicated in this reference.  Most functions throw
    errors using the Clipper error system; F2Error() is not needed with
    those.

    Note that even functions that throw errors reset F2Error() to zero if
    they succeed, so you should get its value immediately after the function
    that fails.

 Example

    hfont := FontLoadXFB("nonesuch.xfb")
    if hfont == NIL
        // FontLoadXFB returns NIL on error
        ? "FontLoadXFB failed: " + F2ErrorMessage(F2Error())
        quit
    endif

See Also: F2ErrorMessage

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson