Symptom

How to set the PowerBuilder executable exit code so that other applications that call it can obtain its return value when the PowerBuilder executable exits?


Environment

PowerBuilder 2017 and above


Resolution

In the Close event of the Application Object, set Message.LongParm to the value you want. Message.LongParm is the exit code of the application when it exits.

 

2
0