[Gambas-user] R: know if program is compiled

Marco Ancillotti gambas at ...3466...
Sun Jun 14 15:03:58 CEST 2015


Il 14/06/2015 14:22, Ru Vuott ha scritto:
> ...and this ?
>
> Public Sub Main()
>
> If File.Load("/proc" &/ CStr(Application.Id) &/ "cmdline") Like "*.gambas*" Then
>    Print "Running compiled into a .gambas file"
> Else
>    Print "Running under the IDE"
> Endif
>
> End
>

if U add a simple "; echo .gambas" at the end of command line U can 
bypass that check.

trust me , before using the Exec variable I've tryed a lot :-D







More information about the User mailing list