[Gambas-user] gb.Args component, FOR EACH...NEXT not working
Demosthenes Koptsis
demosthenesk at gmail.com
Thu Aug 3 00:47:56 CEST 2023
Well i dont know what it was wrong, but i deleted the Project folder and
created a new Project140
and it works!
@BB gb.args when enumerated it shows ALL options and arguments
Thanks for your time!
On 8/3/23 00:48, Benoit Minisini wrote:
> 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,
>
More information about the User
mailing list