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.

Determing if a window instance is open

5 posts in Objects Last posting was on 2002-07-24 10:52:06.0Z
Agnel Posted on 2002-07-23 14:20:05.0Z
Newsgroups: sybase.public.powerbuilder.objects
From: Agnel
Date: Tue, 23 Jul 2002 10:20:05 -0400
Subject: Determing if a window instance is open
Lines: 15
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Message-ID: <364_FE03685020478FC5004EBE3185256BFF.004EBE3F85256BFF@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:1087
Article PK: 713652

Hi friends,

Is there any way I can find out if an intance of a window is open. If it is
open don't create a new instance and bring the existing instance window to
the front.

w_employer gw_emp
OpenSheetWithParm(gw_emp,"B",w_genapp_frame, 0, layered!)

Note: gw_emp is a global variable

Any help will be really appreciated.

Thanks
Agnel


Simon Caldwell [TeamSybase] Posted on 2002-07-24 09:31:39.0Z
Newsgroups: sybase.public.powerbuilder.objects
From: "Simon Caldwell [TeamSybase]" <simonDOTcaldwellATbigfootDOTcom>
Subject: Re: Determing if a window instance is open
Date: Wed, 24 Jul 2002 10:31:39 +0100
Lines: 31
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: getreal.demon.co.uk 193.237.14.95
Message-ID: <364_raU3GavMCHA.317@forums.sybase.com>
References: <364_FE03685020478FC5004EBE3185256BFF.004EBE3F85256BFF@webforums>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.powerbuilder.objects:1082
Article PK: 713644

OpenSheetWithParm(w_employer ,"B",w_genapp_frame, 0, layered!)

This will open the sheet if it's not already open, or set focus to it if it
is.

Simon
--
All views expressed in this message are my own and not necessarily those of
my employer

<Agnel> wrote in message
news:FE03685020478FC5004EBE3185256BFF.004EBE3F85256BFF@webforums...
> Hi friends,
>
> Is there any way I can find out if an intance of a window is open. If it
is
> open don't create a new instance and bring the existing instance window to
> the front.
>
> w_employer gw_emp
> OpenSheetWithParm(gw_emp,"B",w_genapp_frame, 0, layered!)
>
> Note: gw_emp is a global variable
>
> Any help will be really appreciated.
>
> Thanks
> Agnel


Guruguru Posted on 2002-07-24 10:52:06.0Z
Newsgroups: sybase.public.powerbuilder.objects
From: "Guruguru" <guruguru@gurugurus.com>
Subject: Re: Determing if a window instance is open
Date: Wed, 24 Jul 2002 18:52:06 +0800
Lines: 22
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4807.1700
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
NNTP-Posting-Host: 202.70.21.88
Message-ID: <364_sGJKpGwMCHA.306@forums.sybase.com>
References: <364_FE03685020478FC5004EBE3185256BFF.004EBE3F85256BFF@webforums>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.powerbuilder.objects:1081
Article PK: 713645

try check by Window Title

<Agnel> ?????
news:FE03685020478FC5004EBE3185256BFF.004EBE3F85256BFF@webforums...

> Hi friends,
>
> Is there any way I can find out if an intance of a window is open. If it
is
> open don't create a new instance and bring the existing instance window to
> the front.
>
> w_employer gw_emp
> OpenSheetWithParm(gw_emp,"B",w_genapp_frame, 0, layered!)
>
> Note: gw_emp is a global variable
>
> Any help will be really appreciated.
>
> Thanks
> Agnel


Arnoud Oortwijk Posted on 2002-07-24 07:07:38.0Z
Newsgroups: sybase.public.powerbuilder.objects
From: "Arnoud Oortwijk" <aoortwijk@tangram.nl>
Subject: Re: Determing if a window instance is open
Date: Wed, 24 Jul 2002 09:07:38 +0200
Lines: 31
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4522.1200
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200
NNTP-Posting-Host: tangram.nl 213.84.194.121
Message-ID: <364_a7A2bIuMCHA.582@forums.sybase.com>
References: <364_FE03685020478FC5004EBE3185256BFF.004EBE3F85256BFF@webforums>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.powerbuilder.objects:1083
Article PK: 713646

IF IsValid( gw_emp ) THEN
gw_Emp.SetPosition( ToTop! )
ELSE
// Open new instance
END IF

HTH
Arnoud
Url: http://www.gloriant.be


<Agnel> schreef in bericht
news:FE03685020478FC5004EBE3185256BFF.004EBE3F85256BFF@webforums...

> Hi friends,
>
> Is there any way I can find out if an intance of a window is open. If it
is
> open don't create a new instance and bring the existing instance window to
> the front.
>
> w_employer gw_emp
> OpenSheetWithParm(gw_emp,"B",w_genapp_frame, 0, layered!)
>
> Note: gw_emp is a global variable
>
> Any help will be really appreciated.
>
> Thanks
> Agnel


J Stephen Abdo Posted on 2002-07-23 14:03:46.0Z
Newsgroups: sybase.public.powerbuilder.objects
From: "J Stephen Abdo" <stephenabdo@yahoo.com>
Subject: Re: Determing if a window instance is open
Date: Tue, 23 Jul 2002 10:03:46 -0400
Lines: 26
Organization: DMFP, 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: 65.82.149.214
Message-ID: <364_XjNisNlMCHA.349@forums.sybase.com>
References: <364_FE03685020478FC5004EBE3185256BFF.004EBE3F85256BFF@webforums>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.powerbuilder.objects:1086
Article PK: 713650

Agnel,
instead of using a reference variable, use the class name to open the
window, and PB will do that for you.

Stephen

<Agnel> wrote in message
news:FE03685020478FC5004EBE3185256BFF.004EBE3F85256BFF@webforums...
> Hi friends,
>
> Is there any way I can find out if an intance of a window is open. If it
is
> open don't create a new instance and bring the existing instance window to
> the front.
>
> w_employer gw_emp
> OpenSheetWithParm(gw_emp,"B",w_genapp_frame, 0, layered!)
>
> Note: gw_emp is a global variable
>
> Any help will be really appreciated.
>
> Thanks
> Agnel