Skip to content

ShowLastError

See Also: External_Function

Purpose

Returns an integer value and displays the error message for the system error codes returned by the Win32 API function GetLastError.

Return Type

Integer

Syntax

Use GlobalFunctionsProcedures.pkg
ShowLastError()

What It Does

Displays the error message for the system error codes returned by the Win32 API function GetLastError. This is useful for displaying errors (if any) after making Windows API calls.

Examples

Use GlobalFunctionsProcedures.pkg

Procedure Test
    Integer iResult
    // :
    // make some Windows API call here using External_Function command
    // :
    Move (ShowLastError()) to iResult
End_Procedure