Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

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

1,010 views
Skip to first unread message

Patrick Graf

unread,
Mar 2, 2004, 7:56:18 AM3/2/04
to
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

unread,
Mar 2, 2004, 8:11:47 AM3/2/04
to
Check IsValid() function...
Hth

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

Jim Ory

unread,
Mar 2, 2004, 11:45:07 AM3/2/04
to
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" <comb...@gmx.net> wrote in message
news:40448472@forums-1-dub...

Patrick Graf

unread,
Mar 3, 2004, 1:40:00 AM3/3/04
to
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...

Isaac Ramírez

unread,
Sep 23, 2021, 6:13:13 PM9/23/21
to
xddddd that is util 20 years later
0 new messages