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 to check a "message" object's powerobject content ?

4 posts in Objects Last posting was on 2004-03-03 06:40:00.0Z
Patrick Graf Posted on 2004-03-02 12:56:18.0Z
From: "Patrick Graf" <combovit@gmx.net>
Newsgroups: sybase.public.powerbuilder.objects
Subject: How to check a "message" object's powerobject content ?
Lines: 45
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 62-2-191-98.business.cablecom.ch
X-Original-NNTP-Posting-Host: 62-2-191-98.business.cablecom.ch
Message-ID: <40448472@forums-1-dub>
Date: 2 Mar 2004 04:56:18 -0800
X-Trace: forums-1-dub 1078232178 62.2.191.98 (2 Mar 2004 04:56:18 -0800)
X-Original-Trace: 2 Mar 2004 04:56:18 -0800, 62-2-191-98.business.cablecom.ch
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:7813
Article PK: 735093

Hi all,

I'm having a problem with the message.powerobjectparm.

I want to check, if a specific user object was provided or not in the
OpenWithParm function.
It would be a reference to a user object stored in the
message.powerobjectparm.

The problem is, if no reference is stored in the powerObjectParm, I receive
an error
"Null object reference at line 3 in open event of object ....".
It occures at the ClassName() function call because the "if not isnull...."
is evaluated as true

Here the example:

window open event
***************
u_fkc fkc
IF NOT IsNull(message.powerobjectparm) then
IF ClassName(message.powerObjectParm) = "u_fkc" THEN
fkc = message.powerObjectParm
END IF
END IF

external call to open the window:
*************************
u_fkc fkc
fkc = create u_fkc
:
OpenWithParm(myWindow, fkc)
:

What I'm looking for is a function similar to"isnull()" to check if the
object is there or not...


Thank you for any help/hints


Patrick


Luca Marcato Posted on 2004-03-02 13:11:47.0Z
From: "Luca Marcato" <luca_marcato@hotmail.com>
Newsgroups: sybase.public.powerbuilder.objects
References: <40448472@forums-1-dub>
Subject: Re: How to check a "message" object's powerobject content ?
Lines: 54
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.3790.0
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
X-Original-NNTP-Posting-Host: host114-87.pool62110.interbusiness.it
Message-ID: <40448839$1@forums-2-dub>
X-Original-Trace: 2 Mar 2004 05:12:25 -0800, host114-87.pool62110.interbusiness.it
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 2 Mar 2004 05:10:35 -0800, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 2 Mar 2004 05:11:47 -0800
X-Trace: forums-1-dub 1078233107 10.22.108.75 (2 Mar 2004 05:11:47 -0800)
X-Original-Trace: 2 Mar 2004 05:11:47 -0800, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:7814
Article PK: 735087

Check IsValid() function...
Hth

"Patrick Graf" <combovit@gmx.net> ha scritto nel messaggio
news:40448472@forums-1-dub...

> Hi all,
>
> I'm having a problem with the message.powerobjectparm.
>
> I want to check, if a specific user object was provided or not in the
> OpenWithParm function.
> It would be a reference to a user object stored in the
> message.powerobjectparm.
>
> The problem is, if no reference is stored in the powerObjectParm, I
receive
> an error
> "Null object reference at line 3 in open event of object ....".
> It occures at the ClassName() function call because the "if not
isnull...."
> is evaluated as true
>
> Here the example:
>
> window open event
> ***************
> u_fkc fkc
> IF NOT IsNull(message.powerobjectparm) then
> IF ClassName(message.powerObjectParm) = "u_fkc" THEN
> fkc = message.powerObjectParm
> END IF
> END IF
>
> external call to open the window:
> *************************
> u_fkc fkc
> fkc = create u_fkc
> :
> OpenWithParm(myWindow, fkc)
> :
>
> What I'm looking for is a function similar to"isnull()" to check if the
> object is there or not...
>
>
> Thank you for any help/hints
>
>
> Patrick
>
>
>


Patrick Graf Posted on 2004-03-03 06:40:00.0Z
From: "Patrick Graf" <combovit@gmx.net>
Newsgroups: sybase.public.powerbuilder.objects
References: <40448472@forums-1-dub> <40448839$1@forums-2-dub>
Subject: Re: How to check a "message" object's powerobject content ?
Lines: 68
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
X-Original-NNTP-Posting-Host: 62-2-191-98.business.cablecom.ch
Message-ID: <40457de8$1@forums-2-dub>
X-Original-Trace: 2 Mar 2004 22:40:40 -0800, 62-2-191-98.business.cablecom.ch
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 2 Mar 2004 22:38:45 -0800, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 2 Mar 2004 22:40:00 -0800
X-Trace: forums-1-dub 1078296000 10.22.108.75 (2 Mar 2004 22:40:00 -0800)
X-Original-Trace: 2 Mar 2004 22:40:00 -0800, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:7820
Article PK: 735094

Hi,

that's the solution to my problem.

Thank you !


Patrick


"Luca Marcato" <luca_marcato@hotmail.com> schrieb im Newsbeitrag
news:40448839$1@forums-2-dub...

> Check IsValid() function...
> Hth
>
> "Patrick Graf" <combovit@gmx.net> ha scritto nel messaggio
> news:40448472@forums-1-dub...
> > Hi all,
> >
> > I'm having a problem with the message.powerobjectparm.
> >
> > I want to check, if a specific user object was provided or not in the
> > OpenWithParm function.
> > It would be a reference to a user object stored in the
> > message.powerobjectparm.
> >
> > The problem is, if no reference is stored in the powerObjectParm, I
> receive
> > an error
> > "Null object reference at line 3 in open event of object ....".
> > It occures at the ClassName() function call because the "if not
> isnull...."
> > is evaluated as true
> >
> > Here the example:
> >
> > window open event
> > ***************
> > u_fkc fkc
> > IF NOT IsNull(message.powerobjectparm) then
> > IF ClassName(message.powerObjectParm) = "u_fkc" THEN
> > fkc = message.powerObjectParm
> > END IF
> > END IF
> >
> > external call to open the window:
> > *************************
> > u_fkc fkc
> > fkc = create u_fkc
> > :
> > OpenWithParm(myWindow, fkc)
> > :
> >
> > What I'm looking for is a function similar to"isnull()" to check if the
> > object is there or not...
> >
> >
> > Thank you for any help/hints
> >
> >
> > Patrick
> >
> >
> >
>
>


Jim Ory Posted on 2004-03-02 16:45:07.0Z
From: "Jim Ory" <jimory@noww.us>
Newsgroups: sybase.public.powerbuilder.objects
References: <40448472@forums-1-dub>
Subject: Re: How to check a "message" object's powerobject content ?
Lines: 59
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
X-Original-NNTP-Posting-Host: h-66-166-174-34.chcgilgm.covad.net
Message-ID: <4044ba3b$1@forums-2-dub>
X-Original-Trace: 2 Mar 2004 08:45:47 -0800, h-66-166-174-34.chcgilgm.covad.net
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 2 Mar 2004 08:43:56 -0800, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 2 Mar 2004 08:45:07 -0800
X-Trace: forums-1-dub 1078245907 10.22.108.75 (2 Mar 2004 08:45:07 -0800)
X-Original-Trace: 2 Mar 2004 08:45:07 -0800, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:7815
Article PK: 735088

if isvalid(message.powerobjectparm) then
// check valid structure was passed.
if ClassName(message.powerobjectparm) = 'str_order_search' then
... (code) ...
end if
end if

"Patrick Graf" <combovit@gmx.net> wrote in message
news:40448472@forums-1-dub...
> Hi all,
>
> I'm having a problem with the message.powerobjectparm.
>
> I want to check, if a specific user object was provided or not in the
> OpenWithParm function.
> It would be a reference to a user object stored in the
> message.powerobjectparm.
>
> The problem is, if no reference is stored in the powerObjectParm, I
receive
> an error
> "Null object reference at line 3 in open event of object ....".
> It occures at the ClassName() function call because the "if not
isnull...."
> is evaluated as true
>
> Here the example:
>
> window open event
> ***************
> u_fkc fkc
> IF NOT IsNull(message.powerobjectparm) then
> IF ClassName(message.powerObjectParm) = "u_fkc" THEN
> fkc = message.powerObjectParm
> END IF
> END IF
>
> external call to open the window:
> *************************
> u_fkc fkc
> fkc = create u_fkc
> :
> OpenWithParm(myWindow, fkc)
> :
>
> What I'm looking for is a function similar to"isnull()" to check if the
> object is there or not...
>
>
> Thank you for any help/hints
>
>
> Patrick
>
>
>