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.

Reference to an object in another library

3 posts in Objects Last posting was on 2006-02-06 17:33:55.0Z
Covisions, Accra Posted on 2006-02-06 13:33:15.0Z
Sender: 324e.43e74d85.1804289383@sybase.com
From: Covisions, Accra
Newsgroups: sybase.public.powerbuilder.objects
Subject: Reference to an object in another library
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <43e7501b.3284.1681692777@sybase.com>
NNTP-Posting-Host: 10.22.241.41
X-Original-NNTP-Posting-Host: 10.22.241.41
Date: 6 Feb 2006 05:33:15 -0800
X-Trace: forums-1-dub 1139232795 10.22.241.41 (6 Feb 2006 05:33:15 -0800)
X-Original-Trace: 6 Feb 2006 05:33:15 -0800, 10.22.241.41
Lines: 6
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:8767
Article PK: 735974

I need to refer to an object in another library having the
same name with an object in my active library , can i
include library as part of my dot notation, if not How can I
get this done? Changing the name of the object is almost not
an option becos of its nature (w_genapp_frame). Its widely
used in the entire app.


"Boris Gasin [TeamSybase]" <nospambgasinatdynamictechgroupdotcom Posted on 2006-02-06 17:33:55.0Z
From: "Boris Gasin [TeamSybase]" <nospambgasinatdynamictechgroupdotcom@>
Newsgroups: sybase.public.powerbuilder.objects
Subject: Re: Reference to an object in another library
Organization: Dynamic Technology Group http://www.dynamictechgroup.com
Message-ID: <1uteu1p31rdj890328t8ln4cu00asbsscv@4ax.com>
References: <43e7501b.3284.1681692777@sybase.com>
X-Newsreader: Forte Agent 2.0/32.652
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Original-NNTP-Posting-Host: 155.94.110.253
X-Original-Trace: 6 Feb 2006 08:30:05 -0800, 155.94.110.253
Lines: 17
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 6 Feb 2006 08:30:05 -0800, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 6 Feb 2006 09:33:55 -0800
X-Trace: forums-1-dub 1139247235 10.22.108.75 (6 Feb 2006 09:33:55 -0800)
X-Original-Trace: 6 Feb 2006 09:33:55 -0800, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:8769
Article PK: 735973


On 6 Feb 2006 05:33:15 -0800, Covisions, Accra wrote:

>I need to refer to an object in another library having the
>same name with an object in my active library , can i
>include library as part of my dot notation, if not How can I
>get this done? Changing the name of the object is almost not
>an option becos of its nature (w_genapp_frame). Its widely
>used in the entire app.

In addition to what Millard mentioned, there is another reason.
PowerBuilder is not a pure interpreted language and many references
are fixed at compile time.

You need to come up with a completely differernt strategy.

If you describe your requirements in detail we can offer other
suggestions.


Millard F. Brown III Posted on 2006-02-06 16:58:20.0Z
From: "Millard F. Brown III" <millard.brown@teamsybase.com>
Newsgroups: sybase.public.powerbuilder.objects
References: <43e7501b.3284.1681692777@sybase.com>
Subject: Re: Reference to an object in another library
Lines: 21
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: 204.86.34.1
X-Original-NNTP-Posting-Host: 204.86.34.1
Message-ID: <43e7802c$1@forums-1-dub>
Date: 6 Feb 2006 08:58:20 -0800
X-Trace: forums-1-dub 1139245100 204.86.34.1 (6 Feb 2006 08:58:20 -0800)
X-Original-Trace: 6 Feb 2006 08:58:20 -0800, 204.86.34.1
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:8768
Article PK: 735976

Unfortunately, you can't do this. The object can't be instantiated, because
PB will always instantiate the object from the first PBL in the library
list. If you can't instantiate the object, you can't get a reference to it.

If, however, you're just looking to find something out about this object,
you can use the libraryexport function to obtain the source code, then look
through the source for whatever it is you want.
--
Regards,
Millard [TeamSybase]

<Covisions>; <Accra> wrote in message
news:43e7501b.3284.1681692777@sybase.com...
> I need to refer to an object in another library having the
> same name with an object in my active library , can i
> include library as part of my dot notation, if not How can I
> get this done? Changing the name of the object is almost not
> an option becos of its nature (w_genapp_frame). Its widely
> used in the entire app.