Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- FlexFile Reference Guide - <b>v_error()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 V_ERROR()
 Report specific error codes from the DBV system
-------------------------------------------------------------------------------

 Syntax

    V_ERROR()   ->    nErrorCode

 Arguments

    None.

 Returns

    V_ERROR() returns the FlexFile error code as a numeric integer.

 Description

    V_ERROR() is an error reporting function that will return the most
    recent error code that FlexFile set. If a failed operation has no
    FlexFile error code check the DOS error code by using Clipper's
    DOSERROR() function.

    For a complete list of error codes and their descriptions refer to
    Appendix B.

 Examples

    // Trying to V_REPLACE() data in an area that does not have a
    // file open causes an error.
    V_FILES(4)
    USE dbf_file       // Valid DBF file is opened.
    V_SELECT( 4 )      // No DBV file is open in area 4.

    // V_REPLACE() will return (.F.) because there is no file
    // open in area 4.  Because vlf is a six byte character
    // field, a runtime "data type mismatch" is produced.
    REPLACE vlf WITH V_REPLACE("Data type mismatch", vlf)

    //  In errorsys.prg...
    ? V_ERROR()     //  Returns 7301.
                    // Appendix B: DBV file not open.

See Also: Error Codes Introduction

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