jmon Well-Known Member Licensed User Longtime User Sep 14, 2015 #1 Hello, It would be great to add a tag to the jShell jobs. That way it would be easier to link the command result to something else. Code: Copy Private Sub Shell_ProcessCompleted (Success As Boolean, ExitCode As Int, StdOut As String, StdErr As String) Dim sh As Shell = Sender Log(sh.Tag) '.... End Sub Thank you. Jmon.
Hello, It would be great to add a tag to the jShell jobs. That way it would be easier to link the command result to something else. Code: Copy Private Sub Shell_ProcessCompleted (Success As Boolean, ExitCode As Int, StdOut As String, StdErr As String) Dim sh As Shell = Sender Log(sh.Tag) '.... End Sub Thank you. Jmon.
jmon Well-Known Member Licensed User Longtime User Sep 14, 2015 #2 I have posted a library that sets a tag to your jShell jobs: (jShellQueue) https://www.b4x.com/android/forum/threads/jshellqueue.58315/
I have posted a library that sets a tag to your jShell jobs: (jShellQueue) https://www.b4x.com/android/forum/threads/jshellqueue.58315/
Erel B4X founder Staff member Licensed User Longtime User Sep 15, 2015 #3 Note that there is another solution for this. You can use a Map with the jShell objects as keys. This will allow you to get the "tag" value from the Sender.
Note that there is another solution for this. You can use a Map with the jShell objects as keys. This will allow you to get the "tag" value from the Sender.
jmon Well-Known Member Licensed User Longtime User Sep 15, 2015 #4 Erel said: Note that there is another solution for this. You can use a Map with the jShell objects as keys. This will allow you to get the "tag" value from the Sender. Click to expand... Thanks, I figured that out and so I'm using a similar idea in the jshellqueue library.
Erel said: Note that there is another solution for this. You can use a Map with the jShell objects as keys. This will allow you to get the "tag" value from the Sender. Click to expand... Thanks, I figured that out and so I'm using a similar idea in the jshellqueue library.