Delphi Programming
Advertisement
This page is intended as a supplement to the official documentation on Delphi programming. CodeGear is in the process of putting the Delphi documentation on the Web. Once they have done so, this page will link to the relevant page in the official documentation.
Stub
This article is a stub.
Please help enhance the Delphi Programming Wiki by expanding it.
Info
see the VCL Documentation Guidelines for an overview on doc pages

Unit[]

Description[]

Definition:

  function SysErrorMessage(ErrorCode: Cardinal): string;

The SysErrorMessage function takes one parameter which is of type cardinal and returns a string which is the description of the given errorcode. This function can be used on both linux and windows.

Technical Comments[]

(Known issues / Documentation clarifications / Things to be aware of)

Examples[]

Windows:

  ShowMessage(SysErrorMessage(GetLastError)); //Will show the error description of the last error.
  ShowMessage(SysErrorMessage(126));          //Will show 'The specified module could not be found.'

See Also[]

(Please provide links to items specifically related to this item.)

User Comments/Tips[]

(Please leave your name with your comment.)

Advertisement