[Gambas-user] Speaking of using common linux tools

Fabien Bodard gambas.fr at gmail.com
Sun Dec 11 15:55:07 CET 2022


This is a great tips ..thank you 🙂.

Gambas is now so complete.. it is difficult to know everything and to
remember everything for a single man.

Le dim. 11 déc. 2022 à 13:20, Bruce Steers <bsteers4 at gmail.com> a écrit :

> You're welcome 😎
>
> Ps. if compiling outside the ide via shell using gbc3 be sure to use gbc3
> -x to set the Exec flag.
>
>
> Another simple solution to distinguish if on Ide or not was to just add an
> argument in the ide debugger settings like --ide.
> And only use that arg in the ide. Program checks for --ide arg on startup
> and acts accordingly.
>
> Respects
> BruceS
>
> On Sun, 11 Dec 2022, 12:10 BB, <adamnt42 at gmail.com> wrote:
>
>> Duly acknowledged!
>>
>> On 11/12/22 10:06 pm, Bruce Steers wrote:
>> > Try this in your startup class
>> >
>> > #If Exec
>> >   Quit
>> > #Endif
>> >
>> > When compiling an exe gambas sets the x flag. The IDE does not when
>> > debugging.
>> >
>> > So the above code #If Exec is true if run from desktop and not if run
>> > from IDE
>>
>>
>> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
>>
>
> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20221211/ce69701e/attachment.htm>


More information about the User mailing list