[Gambas-user] gb.Args component, FOR EACH...NEXT not working

BB adamnt42 at gmail.com
Thu Aug 3 02:23:21 CEST 2023


On 3/8/23 9:29 am, Jussi Lahtinen wrote:
>
>     Well that is a shame. I'm sure that it used to and was a quick way
>     of getting the actual arguments out of the command line without
>     having to resort to gb.args component.
>
> How do you know which value is passed for which option, if you cannot 
> get them?
>
> Jussi
>
> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----


Aaaarrrrggh! Arguments, arguments, arguments. 😁

Arguments are positional, as in cp <source> <destination>.


For example, if I want my program to have two mandatory arguments 
otherwise exit with an error...

If Args.Count < 3 then blah blah

No need for gb.args just the native Args class.

b

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20230803/c3f2b0b3/attachment-0001.htm>


More information about the User mailing list