SPECIAL OFFER        Order and save right now!
20% off with the 729824315 dicscount code for Ultimate Pack and any another product for Delphi from Greatis Programming!

⤷ Get the last error message

Use GetLastError function to get code of the last error and SysErrorMessage function to convert this code to string.

procedure TForm1.Button1Click(Sender: TObject);
begin
  ShowMessage(SysErrorMessage(GetLastError));
end;
More for developers
Databases for Amazon Associates
Amazon Categories
Amazon Nodes