Does FBCMD.exe return anything on success and failure? eg. 0 and 1 ?
thanks,
Clive
Does FBCMD.exe return anything on success and failure? eg. 0 and 1 ?
thanks,
Clive
… and, what is the best way of ensuring that a project always captures any error instead of just failing? I guess that would be with Try | Catch? What we need is for the project when called by FBCMD to always pass back a return value (eg. 0 or 1) for success/failure regardless of what might have broken within the project. How’s it done?
Thanks in advance,
Clive
Hi Clive,
Try…Catch is the way to do it.
FBCMD returns a 1 if the project failed, 0 if it succeeded, and various other codes if internal errors occur. There’s a full list under “Exit Codes” in the Index.
Regards,
Angus
Angus,
Thankyou for the info.
Clive