<div dir="ltr">You can use gb.args in your program<br><br>Arguments are separated by a space when they are used to run the program,<br><br>for example when you call a gambas program like this: ./myprogram.gambas -t -f=2 --no-separate-pages<br><br>you have 3 arguments:<br><br>-t<br>-f=2<br>--no-separate-pages<br><br>(these three arguments are just an example they don't mean anything specific)<br><br>Args.Count counts all the arguments, so in our example it would be 4 and that's because ./myprogram.gambas is also considered an argument (Argument 0, the first argument)<br><br>You can check how many arguments we have by using Args.Max, which gives you whatever Args.Count gives you -1 <br><br>So when you have more than one argument you can run through them and do your argument analysis that way.<br><br>I think gb.Args also has some helper subs and functions for argument analysis.<br><br>Check the documentation about gb.args and you'll see what I mean.<br><br>Hope this helps out.<div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Oct 15, 2019 at 3:22 PM PICCORO McKAY Lenz <<a href="mailto:mckaygerhard@gmail.com">mckaygerhard@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">El mar., 15 de oct. de 2019 a la(s) 15:28, gen braga<br>
(<a href="mailto:genbraga1@gmail.com" target="_blank">genbraga1@gmail.com</a>) escribió:<br>
><br>
> <a href="http://gambaswiki.org/wiki/comp/gb.args" rel="noreferrer" target="_blank">http://gambaswiki.org/wiki/comp/gb.args</a><br>
that wiki page does not have examples<br>
<br>
hey i ask about an example that was in logn older examles directory in<br>
old days when those was distributed alongside with gambas.. ..<br>
<br>
i try to find at the gambas farm with tags "example" and "console" and<br>
i cannot foudn any example<br>
<br>
the class wiki page only link here<br>
<a href="https://lists.gambas-basic.org/pipermail/user/2015-November/055653.html" rel="noreferrer" target="_blank">https://lists.gambas-basic.org/pipermail/user/2015-November/055653.html</a><br>
that has enough code and explanation but the idea was to put directly<br>
in the wiki so will apears in the ide! X-(<br>
<br>
><br>
> Active? Nope. Just got a mobile mail reader and commuting time.<br>
><br>
> Em ter, 15 de out de 2019 16:23, PICCORO McKAY Lenz <<a href="mailto:mckaygerhard@gmail.com" target="_blank">mckaygerhard@gmail.com</a>> escreveu:<br>
>><br>
>> El mar., 15 de oct. de 2019 a la(s) 15:19, gen braga<br>
>> (<a href="mailto:genbraga1@gmail.com" target="_blank">genbraga1@gmail.com</a>) escribió:<br>
>> ><br>
>> > Process1=exec[executable, parameters]<br>
>><br>
>> PUFFF stupid english...<br>
>><br>
>> i mean i want to make a gambas console project that receive arguments.. ..+<br>
>><br>
>> are you so active here right? that's good!+<br>
>><br>
>> ><br>
>> > -<br>
>> > Regards.<br>
>> ><br>
>> > Em ter, 15 de out de 2019 16:11, PICCORO McKAY Lenz <<a href="mailto:mckaygerhard@gmail.com" target="_blank">mckaygerhard@gmail.com</a>> escreveu:<br>
>> >><br>
>> >> i cannot see in examples a command line made that can receive parameters..<br>
>> >><br>
>> >> i just guess that in older versions of gamgbas (where examples are<br>
>> >> come buld in) there's one<br>
>> >><br>
>> >><br>
>> >> or not? if there's one.. where are that example?<br>
>> >><br>
>> >> Lenz McKAY Gerardo (PICCORO)<br>
>> >> <a href="http://qgqlochekone.blogspot.com" rel="noreferrer" target="_blank">http://qgqlochekone.blogspot.com</a><br>
>> >><br>
>> >> ----[ Gambas mailing-list is hosted by <a href="https://www.hostsharing.net" rel="noreferrer" target="_blank">https://www.hostsharing.net</a> ]----<br>
>> ><br>
>> ><br>
>> > ----[ Gambas mailing-list is hosted by <a href="https://www.hostsharing.net" rel="noreferrer" target="_blank">https://www.hostsharing.net</a> ]----<br>
>><br>
>> ----[ Gambas mailing-list is hosted by <a href="https://www.hostsharing.net" rel="noreferrer" target="_blank">https://www.hostsharing.net</a> ]----<br>
><br>
><br>
> ----[ Gambas mailing-list is hosted by <a href="https://www.hostsharing.net" rel="noreferrer" target="_blank">https://www.hostsharing.net</a> ]----<br>
<br>
----[ Gambas mailing-list is hosted by <a href="https://www.hostsharing.net" rel="noreferrer" target="_blank">https://www.hostsharing.net</a> ]----<br>
</blockquote></div>