Hello,
Inspired by this topic: viewtopic.php?f=1&t=21139
How about a new global variable called [ExitCode] ?
Default is 0 and can be set to any integer.
Code would be returned from the neobook app. Similar to popular cmd-tools in windows universe.
Could be usefull in automated tool-chains.
Regards
Global var [ExitCode]
Moderator: Neosoft Support
Global var [ExitCode]
Hans-Peter
-
- NeoSoft Team
- Posts: 5628
- Joined: Thu Mar 31, 2005 10:48 pm
- Location: Oregon, USA
- Contact:
Re: Global var [ExitCode]
I read the referenced post but I don't understand something.
If an exit code is created, how would it be recorded when the app is closed unexpectedly or in some manner that doesn't allow you to record the code for future reference?
If an exit code is created, how would it be recorded when the app is closed unexpectedly or in some manner that doesn't allow you to record the code for future reference?
David Payer
Des Moines, Iowa
USA
Des Moines, Iowa
USA
Re: Global var [ExitCode]
A calling-app or batch can read the exit code and react on its messagge-id.If an exit code is created, how would it be recorded when the app is closed unexpectedly or in some manner that doesn't allow you to record the code for future reference?
Kind of reverse way of commandline-parameter.
Run "[PubDir]myapp_with_exitcode" "" "RunOnce+Wait" "" "[AppId]".
Through "[AppId] the following variables exist: [AppID.ProcessID], [AppID.ProcessHandle], [AppID.WinHandle] and [AppID.ExitCode].
Regards
Hans-Peter
Re: Global var [ExitCode]
So the calling app will be constantly updated with the value of [AppID.ExitCode] by the 'myapp' ?HPW wrote: A calling-app or batch can read the exit code and react on its messagge-id.
Kind of reverse way of commandline-parameter.
Run "[PubDir]myapp_with_exitcode" "" "RunOnce+Wait" "" "[AppId]".
Through "[AppId] the following variables exist: [AppID.ProcessID], [AppID.ProcessHandle], [AppID.WinHandle] and [AppID.ExitCode].
D
David Payer
Des Moines, Iowa
USA
Des Moines, Iowa
USA
Re: Global var [ExitCode]
When constantly means on each run-call, yes.So the calling app will be constantly updated with the value of [AppID.ExitCode] by the 'myapp' ?
When the run commands feds some params to myapp, then you can Transport a result integer back to the caller.
Would be a simple direct way of communication, besides other options and workaround like external files or clipboard.
Regards
Hans-Peter