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.

Declare window variable

3 posts in Objects Last posting was on 2005-09-10 10:16:24.0Z
TMehrens Posted on 2005-09-09 20:42:37.0Z
From: "TMehrens" <tmehrens@mt.gov>
Newsgroups: sybase.public.powerbuilder.objects
Subject: Declare window variable
Lines: 12
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1437
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
NNTP-Posting-Host: user78163.public.state.mt.us
X-Original-NNTP-Posting-Host: user78163.public.state.mt.us
Message-ID: <4321f3bd$1@forums-1-dub>
Date: 9 Sep 2005 13:42:37 -0700
X-Trace: forums-1-dub 1126298557 161.7.78.163 (9 Sep 2005 13:42:37 -0700)
X-Original-Trace: 9 Sep 2005 13:42:37 -0700, user78163.public.state.mt.us
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:8591
Article PK: 735810

In your powerscript code is it A - better to code a variable instance of
your window such as the A example or to just use the window name as in the B
example, or does it matter?
A - w_window lw_window - OpenSheetwithParm(lw_window, ls_some_string,
w_frame, 1, Layered! )
B - OpenSheetwithParm(w_window, ls_some_string, w_frame, 1, Layered! )

TIA,

Tim


Roy Kiesler [TeamSybase] Posted on 2005-09-09 20:53:34.0Z
From: "Roy Kiesler [TeamSybase]" <SPAM_FREE_roy.kiesler@teamsybase.com>
User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: sybase.public.powerbuilder.objects
Subject: Re: Declare window variable
References: <4321f3bd$1@forums-1-dub>
In-Reply-To: <4321f3bd$1@forums-1-dub>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: c-24-4-166-164.hsd1.ca.comcast.net
X-Original-NNTP-Posting-Host: c-24-4-166-164.hsd1.ca.comcast.net
Message-ID: <4321f64e$1@forums-1-dub>
Date: 9 Sep 2005 13:53:34 -0700
X-Trace: forums-1-dub 1126299214 24.4.166.164 (9 Sep 2005 13:53:34 -0700)
X-Original-Trace: 9 Sep 2005 13:53:34 -0700, c-24-4-166-164.hsd1.ca.comcast.net
Lines: 20
X-Authenticated-User: teamsybase
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:8592
Article PK: 735809


TMehrens wrote:
> In your powerscript code is it A - better to code a variable instance of
> your window such as the A example or to just use the window name as in the B
> example, or does it matter?
> A - w_window lw_window - OpenSheetwithParm(lw_window, ls_some_string,
> w_frame, 1, Layered! )
> B - OpenSheetwithParm(w_window, ls_some_string, w_frame, 1, Layered! )
>
> TIA,
>
> Tim
>
>

Do you need to open multiple instances of w_window? If so, syntax A
allows you to do that. If not, it probably doesn't make a difference...

--
Roy Kiesler [TeamSybase]
http://www.albinoblacksheep.com/flash/posting.php


Joost Bloemsma <dontspam_joost.bloemsma Posted on 2005-09-10 10:16:24.0Z
From: Joost Bloemsma <dontspam_joost.bloemsma@dlm.nl.com_dontspam>
Reply-To: dontspam_joost.bloemsma@dlm.nl.com_dontspam
Organization: DLM bv
User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: sybase.public.powerbuilder.objects
Subject: Re: Declare window variable
References: <4321f3bd$1@forums-1-dub>
In-Reply-To: <4321f3bd$1@forums-1-dub>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: dsl187-16-100.fastxdsl.nl
X-Original-NNTP-Posting-Host: dsl187-16-100.fastxdsl.nl
Message-ID: <4322b278@forums-1-dub>
Date: 10 Sep 2005 03:16:24 -0700
X-Trace: forums-1-dub 1126347384 80.100.16.187 (10 Sep 2005 03:16:24 -0700)
X-Original-Trace: 10 Sep 2005 03:16:24 -0700, dsl187-16-100.fastxdsl.nl
Lines: 26
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:8593
Article PK: 735811


TMehrens wrote:
> In your powerscript code is it A - better to code a variable instance of
> your window such as the A example or to just use the window name as in the B
> example, or does it matter?
> A - w_window lw_window - OpenSheetwithParm(lw_window, ls_some_string,
> w_frame, 1, Layered! )
> B - OpenSheetwithParm(w_window, ls_some_string, w_frame, 1, Layered! )
>
> TIA,
>
> Tim
>
>

Using example B PowerBuilder creates a global variable for you with the
name w_Window. If you don't need to reach the window from somewhere else
it's better to use example a in terms of incapsulation.

Global variables is something I always try to avoid.

--
******************************
** Joost A. Bloemsma
** PowerBuilder Developer
** DLM bv (www.dlm.nl.com)
******************************