🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: sybase.public.powerbuilder.objects
Article #1

Re: How to check a "message" object's powerobject content ?

#1
From: Isaac Ramírez
Date: Thu, 23 Sep 2021 22:13
66 lines
2979 bytes
El miércoles, 3 de marzo de 2004 a las 0:40:00 UTC-6, Patrick Graf escribió:
> Hi,
> that's the solution to my problem.
> Thank you !
> 
> Patrick
> 
> "Luca Marcato" <luca_m...@hotmail.com> schrieb im Newsbeitrag
> news:40448839$1@forums-2-dub...
> > Check IsValid() function...
> > Hth
> >
> > "Patrick Graf" <comb...@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
> > >
> > >
> > >
> >
> >
xddddd  that is util 20 years later
Technical Details
Message-ID: <58f0175e-0a77-4d81-96f4-3a74ef269f25n@googlegroups.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!archive!apf2.newsdeef.eu!not-for-mail
References: <40448472@forums-1-dub> <40448839$1@forums-2-dub> <40457de8$1@forums-2-dub>

Show Full Headers
Complete Article Headers
Message-ID: <58f0175e-0a77-4d81-96f4-3a74ef269f25n@googlegroups.com>
Subject: Re: How to check a "message" object's powerobject content ?
Date: Thu, 23 Sep 2021 22:13:12 +0000
From: Isaac Ramírez <ziriskntn@gmail.com>
References: <40448472@forums-1-dub> <40448839$1@forums-2-dub> <40457de8$1@forums-2-dub>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!archive!apf2.newsdeef.eu!not-for-mail
X-Received: by 2002:ac8:4111:: with SMTP id q17mr1097456qtl.264.1632435192547; Thu, 23 Sep 2021 15:13:12 -0700 (PDT)
X-Received: by 2002:a05:6214:158a:: with SMTP id m10mr3301050qvw.40.1632435192370; Thu, 23 Sep 2021 15:13:12 -0700 (PDT)
Newsgroups: sybase.public.powerbuilder.objects
In-Reply-To: <40457de8$1@forums-2-dub>
Injection-Info: google-groups.googlegroups.com; posting-host=190.53.152.248; posting-account=akpMEAoAAACfc17O6N13py2Cz9wxaT_q
Nntp-Posting-Host: 190.53.152.248
User-Agent: G2/1.0
Mime-Version: 1.0
Injection-Date: Thu, 23 Sep 2021 22:13:12 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 65