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

Demosthenes Koptsis demosthenesk at gmail.com
Wed Aug 2 23:55:13 CEST 2023


here is the project140


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,
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Project140.tar.gz
Type: application/gzip
Size: 12709 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20230803/f09af9e3/attachment-0001.gz>


More information about the User mailing list