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

Demosthenes Koptsis demosthenesk at gmail.com
Wed Aug 2 23:10:45 CEST 2023

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

When i run the Project140.gambas with parameters i get output only for 
command name

----------- Console -----------

./Project140.gambas -1 -2 -3

the parameters -1 -2 -3 are omitted

-------------- next part --------------
A non-text attachment was scrubbed...
Name: Project140.tar.gz
Type: application/gzip
Size: 12655 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20230803/dc6b338d/attachment-0001.gz>

More information about the User mailing list