Recent

Author Topic: EXITCODE/ERRORCODE  (Read 2401 times)

Andy Anderson

  • New member
  • *
  • Posts: 6
EXITCODE/ERRORCODE
« on: September 05, 2014, 06:24:32 pm »
I want to do something like:

TRY
------(some code)-------
Finally
WRITELN (EXITCODE)  //or ERRORCODE
end;

How do I access the EXIT/ERRORCODE ?
What declarations (units) are needed ?

Thanks in advance.

Mike.Cornflake

  • Hero Member
  • *****
  • Posts: 1251
Re: EXITCODE/ERRORCODE
« Reply #1 on: September 05, 2014, 06:30:10 pm »
Errr...   I'm not fully misunderstanding your question...  Depends what your code in ------(some code)------- is calling I guess.

   
Lazarus Trunk/FPC Trunk on Windows [7, 10]
  Have you tried searching this forum or the wiki?:   http://wiki.lazarus.freepascal.org/Alternative_Main_Page
  BOOKS! (Free and otherwise): http://wiki.lazarus.freepascal.org/Pascal_and_Lazarus_Books_and_Magazines

Rails

  • Guest
Re: EXITCODE/ERRORCODE
« Reply #2 on: September 05, 2014, 07:21:29 pm »
http://www.freepascal.org/docs-html/ref/refch17.html#x211-22100017

contains information on exception handling, including error codes. This should give you some place to start.

 

TinyPortal © 2005-2018