[Gambas-user] I've a command line gambas program, how do I send some paramater for it ?
Ron
ron at ...1740...
Wed Jul 29 15:44:14 CEST 2009
Swee Kwang Tan wrote:
> We can write it in C/C++, like this
> int main (int argc, char * argv[]) {
> if (argc < 3) {
> ....
>
>
Hi,
Try:
PUBLIC SUB Main()
DIM a AS String
PRINT "Count " & Application.Args.Count
FOR EACH a IN Application.Args
PRINT a
NEXT
END
http://gambasdoc.org/help/comp/gb/application/args
Kind regards,
Ron_2nd.
More information about the User
mailing list