userExitCode

For questions and postings not covered by the other forums
CLD
Posts: 5
Joined: Sun Jul 11, 2021 3:25 pm
Location: Canterbury

userExitCode

Postby CLD » Tue May 06, 2025 5:01 pm

Starting a non-gui jade.exe app from a .bat batch file.

Within the executing jade code, setting the 'userExitCode' to 33 as per the documentation. (beginTransaction; node.userExitCode := 33; commitTransaction; terminate;)

Have been unable to get a return %errorlevel% other than 0.

.ini file contains:
[FaultHandling]
StandardExitValues=false

Any suggestions as to what I am going wrong?

Thank you.

JohnP
Posts: 75
Joined: Mon Sep 28, 2009 8:41 am
Location: Christchurch

Re: userExitCode

Postby JohnP » Thu May 08, 2025 4:08 pm

Fat client or thin client? What Jade release level?

CLD
Posts: 5
Joined: Sun Jul 11, 2021 3:25 pm
Location: Canterbury

Re: userExitCode

Postby CLD » Thu May 08, 2025 4:57 pm

Appreciate the interest. Thank you.

Jade Client: thin, running on Windows 10 Pro, Windows Server 2019 Data Center (64bit) and Windows 7 (but I can live without Windows 7!)
Jade Version: 6.3.12

Documentation is confusing - some places 'process.userExitCode', and other places 'node.userExitCode'. Only 'node.userExitCode' is available.

Cheers

JohnP
Posts: 75
Joined: Mon Sep 28, 2009 8:41 am
Location: Christchurch

Re: userExitCode

Postby JohnP » Mon May 12, 2025 12:50 pm

process.userExitCode became available in Jade 2016 SP 1 (16.0.02), so it isn't in 6.3.

node.userExitCode sets the exit code of the node, so for thin client that means the appserver, not the presentation client.

CLD
Posts: 5
Joined: Sun Jul 11, 2021 3:25 pm
Location: Canterbury

Re: userExitCode

Postby CLD » Mon May 19, 2025 11:02 am

Thank you John. Cheers


Return to “General Discussion”

Who is online

Users browsing this forum: No registered users and 2 guests