1. Olan Knight
  2. PowerBuilder
  3. Thursday, 28 March 2019 16:09 PM UTC

PBv12.1, build 7055
Windows 7, 64 bit platform
Oracle 12C database

 

How can I determine - in code - that I am running in the IDE vs running an EXE?

 

Thanks,

Olan

Accepted Answer
Philippe PILAT Accepted Answer Pending Moderation
  1. Thursday, 28 March 2019 16:21 PM UTC
  2. PowerBuilder
  3. # Permalink

Hi Olan,

try this : 

if Handle(GetApplication()) = 0 /* running from PB, NOT as a standalone executable */

 

HTH,

Regards.

Philippe.

Comment
  1. Olan Knight
  2. Thursday, 28 March 2019 16:33 PM UTC
Thanks, Philippe!

I knew it was something involving the HANDLE function, but I just coulde NOT remember what! :O



Olan
  1. Helpful
  1. Philippe PILAT
  2. Thursday, 28 March 2019 16:43 PM UTC
Olan,

you're welcome. Glad I could help.
  1. Helpful
There are no comments made yet.


There are replies in this question but you are not allowed to view the replies from this question.