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.

Message Object

3 posts in Objects Last posting was on 2002-10-21 17:36:01.0Z
Russ Posted on 2002-10-21 16:15:24.0Z
Newsgroups: sybase.public.powerbuilder.objects
From: Russ
Date: Mon, 21 Oct 2002 12:15:24 -0400
Subject: Message Object
Lines: 17
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Message-ID: <364_5423C2416242A4D700594CD885256C59.00594D0E85256C59@webforums>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com!webforums.sybase.com!news
Xref: forums-1-dub sybase.public.powerbuilder.objects:853
Article PK: 713415

Hi,

I am trying to pass a structure from one window to another using
OpenSheetWithParm. Here is the line in code:

w_undelete_main l_win

OpenSheetWithParm(l_win,istr_parm,"w_undelete_main",w_mdi_frame_ctas,7,
Original!)

I know that the object I'm passing(istr_parm) is valid before the call to
OpenSheetWithParm, but when I reference the object in the Open event of
w_undelete_main, I get a null object reference error.

Any ideas?

Thanks


Steve_Katz_[TeamSybase] Posted on 2002-10-21 17:05:46.0Z
Newsgroups: sybase.public.powerbuilder.objects
From: Steve_Katz_[TeamSybase]
Date: Mon, 21 Oct 2002 13:05:46 -0400
Subject: Re: Message Object
Lines: 23
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Message-ID: <364_6923F10B57F20903005DE99685256C59.005CBE1185256C59@webforums>
References: <364_5423C2416242A4D700594CD885256C59.00594D0E85256C59@webforums>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com!webforums.sybase.com!news
Xref: forums-1-dub sybase.public.powerbuilder.objects:852
Article PK: 713420

>>I am trying to pass a structure from one window to another using
OpenSheetWithParm. Here is the line in code:

w_undelete_main l_win

OpenSheetWithParm(l_win,istr_parm,"w_undelete_main",w_mdi_frame_ctas,7,
Original!)

I know that the object I'm passing(istr_parm) is valid before the call to
OpenSheetWithParm, but when I reference the object in the Open event of
w_undelete_main, I get a null object reference error.

Any ideas?
<<

Make sure that the VERY FIRST THING YOU DO is save the reference of
Message.PowerObjectParm to a variable of whatever type istr_parm is. The
message object is highly volatile and if you wait until other events are
triggered before you attempt to get the values, the values have likely been
overridden.

steve
[TeamSybase]


Russ Posted on 2002-10-21 17:36:01.0Z
Newsgroups: sybase.public.powerbuilder.objects
From: Russ
Date: Mon, 21 Oct 2002 13:36:01 -0400
Subject: Re: Message Object
Lines: 4
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Message-ID: <364_791D3DBA4E9C102E0060AEAD85256C59.00600B2885256C59@webforums>
References: <364_5423C2416242A4D700594CD885256C59.00594D0E85256C59@webforums> <364_6923F10B57F20903005DE99685256C59.005CBE1185256C59@webforums>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com!webforums.sybase.com!news
Xref: forums-1-dub sybase.public.powerbuilder.objects:851
Article PK: 713411

Bingo!!!

Thanks:)