[Gambas-user] how to detect run ide in macox or other os? in linux uses proc!

PICCORO McKAY Lenz mckaygerhard at gmail.com
Wed Jun 20 23:42:35 CEST 2018


i have this code to detect if gambas runs at ide the current project or the
project are compiled and runs by own:

    strProcess = File.Load("/proc" &/ CStr(Application.Id) &/ "comm")
    If Left(strProcess, 4) = "gbx3" Then
        Return -1
    Else
        Return 0
    Endif

BUT THIS WILL WORK AT THE MACOSX TOO? how can i detect in any
OS/environment if my program runs at ide or not?


Lenz McKAY Gerardo (PICCORO)
http://qgqlochekone.blogspot.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gambas-basic.org/pipermail/user/attachments/20180620/fe5f0afd/attachment-0001.html>


More information about the User mailing list