Magma Expert Licensed User Longtime User Dec 18, 2017 #1 Hi there... is there a way to pass a variable through command line... and ofcourse read it with b4j code... like: C:\> java -jar myapp.jar %1 %2 and then from b4j source: dim a as string 'example dim b as string a=%1 b=%2 Click to expand... Thanks in advance
Hi there... is there a way to pass a variable through command line... and ofcourse read it with b4j code... like: C:\> java -jar myapp.jar %1 %2 and then from b4j source: dim a as string 'example dim b as string a=%1 b=%2 Click to expand... Thanks in advance
alwaysbusy Expert Licensed User Longtime User Dec 18, 2017 #2 You get them automatically in the "Args() As String" param of the AppStart method. a = Args(0) b = Args(1) Upvote 0
You get them automatically in the "Args() As String" param of the AppStart method. a = Args(0) b = Args(1)
Erel B4X founder Staff member Licensed User Longtime User Dec 18, 2017 #4 Note that you can use the #CommandLineArgs attribute to test it during development. B4X: #CommandLineArgs: %1 %2 Upvote 0
Note that you can use the #CommandLineArgs attribute to test it during development. B4X: #CommandLineArgs: %1 %2