Sybase NNTP forums - End Of Life (EOL)

The NNTP forums from Sybase - forums.sybase.com - are now closed.

All new questions should be directed to the appropriate forum at the SAP Community Network (SCN).

Individual products have links to the respective forums on SCN, or you can go to SCN and search for your product in the search box (upper right corner) to find your specific developer center.

How can I check to see if my application being run in the runtime or development environment?

3 posts in Objects Last posting was on 2002-10-23 12:05:15.0Z
Raj Posted on 2002-10-22 19:48:59.0Z
Newsgroups: sybase.public.powerbuilder.objects
From: raj
Date: Tue, 22 Oct 2002 15:48:59 -0400
Subject: How can I check to see if my application being run in the runtime or development environment?
Lines: 1
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Message-ID: <364_70F1560794BF2505006CDAD585256C5A.006CDAE285256C5A@webforums>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com!webforums.sybase.com!news
Xref: forums-1-dub sybase.public.powerbuilder.objects:845
Article PK: 713417


S.V. Software Posted on 2002-10-22 20:39:11.0Z
Newsgroups: sybase.public.powerbuilder.objects
From: "S.V. Software" <svsoftwareNO@SPLAMyahooFORME.com>
Subject: Re: How can I check to see if my application being run in the runtime or development environment?
Date: Tue, 22 Oct 2002 14:39:11 -0600
Lines: 22
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2720.3000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
NNTP-Posting-Host: fw-torre.telemovil.net 200.85.11.34
Message-ID: <364_7hUAMzgeCHA.197@forums.sybase.com>
References: <364_70F1560794BF2505006CDAD585256C5A.006CDAE285256C5A@webforums>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.powerbuilder.objects:844
Article PK: 713408

Try this:

integer i
i = handle(GetApplication())
if i = 0 then
messagebox("", "Dev Environment")
else
messagebox("", "Runtime")
end if

--
S.V. Software
http://www.svsoftware.net
Database Genius 1.0.1 allows your users to create and modify PSR reports
just as you would in Powerbuilder and Infomaker. Download the Demo Version
Now!!!. Source Code now available.

<raj> wrote in message
news:70F1560794BF2505006CDAD585256C5A.006CDAE285256C5A@webforums...
>


Chris Pollach Posted on 2002-10-23 12:05:15.0Z
Newsgroups: sybase.public.powerbuilder.objects
Reply-To: "Chris Pollach" <cpollach@ajja.com>
From: "Chris Pollach" <cpollach@ajja.com>
Subject: Re: How can I check to see if my application being run in the runtime or development environment?
Date: Wed, 23 Oct 2002 08:05:15 -0400
Lines: 35
Organization: STD Inc
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
NNTP-Posting-Host: www.scc-csc.gc.ca 209.47.227.132
Message-ID: <364_QTyfV6oeCHA.91@forums.sybase.com>
References: <364_70F1560794BF2505006CDAD585256C5A.006CDAE285256C5A@webforums> <364_7hUAMzgeCHA.197@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.powerbuilder.objects:839
Article PK: 713405

Raj;

FYI

The reason for the check is from PB, you are being tested as a
"Sub-Task" of PB. As an EXE, you are the "Main" task!

regards ... Chris

"S.V. Software" <svsoftwareNO@SPLAMyahooFORME.com> wrote in message
news:7hUAMzgeCHA.197@forums.sybase.com...
> Try this:
>
> integer i
> i = handle(GetApplication())
> if i = 0 then
> messagebox("", "Dev Environment")
> else
> messagebox("", "Runtime")
> end if
>
> --
> S.V. Software
> http://www.svsoftware.net
> Database Genius 1.0.1 allows your users to create and modify PSR reports
> just as you would in Powerbuilder and Infomaker. Download the Demo Version
> Now!!!. Source Code now available.
>
> <raj> wrote in message
> news:70F1560794BF2505006CDAD585256C5A.006CDAE285256C5A@webforums...
> >
>
>