[Gambas-user] one project, two executable. How to?

Benoît Minisini gambas at ...1...
Tue Jul 7 21:54:51 CEST 2009


> May be two separate projects and calling your executable (2nd program)
> from within main program?
>
> EXEC ["your2ndprogram.gambas"]
>
> Never tested, though.
>
> Regards
>
> Jesus
>

Thanks to Unix, the name of the program is put in Application.Args[0].

So you can create a symbolic link on your program with another name, and then, 
you can decide which thing to do according to the contents of 
Application.Args[0].

Regards,

-- 
Benoît




More information about the User mailing list