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

Benoit Minisini benoit.minisini at gambas-basic.org
Wed Aug 2 23:48:48 CEST 2023


Le 02/08/2023 à 23:10, Demosthenes Koptsis a écrit :
> i test gb.Args component with the following code
> 
> ----------------------------------
> 
> ' Gambas module file
> 
> Public Sub Main()
> 
>    Dim sElement As String
> 
>    For Each sElement In Args
>      Print sElement
>    Next
> End
> ------------------------------------
> 
> When i run the Project140.gambas with parameters i get output only for 
> command name
> 
> ----------- Console -----------
> 
> ./Project140.gambas -1 -2 -3
> ./Project140.gambas
> ----------------------------------
> 
> the parameters -1 -2 -3 are omitted
> 

It works perfectly here. As always, please post a full project when 
reporting a problem!

Regards,

-- 
Benoît Minisini.



More information about the User mailing list