Share this page

# lrt_getFerror

Error Processing Functions

Gets the error status code for the last FML operation that failed.

int lrt_getFerror( void );

The lrt_getFerror function retrieves the error code for the last failed FML operation. This function is used in multi-tasking environments to provide an independent error status for each task, rather than relying on the global error variable (Ferrno).

## Return Values

If the function succeeds, it returns the error code for the last FML routine performed by this task.

## Parameterization

Parameterization is not applicable to this function.

## Example

In the following example, the lrt_getFerror function retrieved the error code generated during the session. The example for lrt_getFerror32 is identical except for the function name.

Copy code

    int rc;
    lr_output_message("id is %s", lrt_Fname(8302));
    lr_output_message("name is %d", lrt_Fldid("ACCOUNT_ID"));
    lr_output_message("name is %d", lrt_Fldid("ACCOUNT_IDS"));
    rc = lrt_getFerror();
    lr_output_message("error code is %d", rc);
    lr_output_message("error message is %s", lrt_Fstrerror(rc));

Tips to improve your search results... VuGen Function Reference Version 26.1-26.3 Function Reference 26.1-26.3 All View Local Help Center View Online Help Center Version: