Can you post the code that you use to call the second form and let me know where this is called in your first form. Also post the code from your second form's Load method.

Frank.

Frank Cazabon

On 20/09/2013 11:19 AM, Jack Skelley wrote:
Frank:
No matter what I do or try callingform returns not an object on the second form.
What is really strange is that I don't do any of this in other applications. I 
just make reference to the form  name and it works. I can't figure out what is 
different...
Jack


________________________________________
From: ProfoxTech [[email protected]] on behalf of Frank Cazabon 
[[email protected]]
Sent: Friday, September 20, 2013 9:44 AM
To: [email protected]
Subject: Re: Getting Data from Another form

I guess maybe you don't have an activeform at that point in time?

Add this code in instead:

IF TYPE("_Screen.ActiveForm.BaseClass") = "C"

      THIS.CallingForm = _Screen.Activeform

ENDIF

Frank.

Frank Cazabon

On 20/09/2013 09:35 AM, Jack Skelley wrote:
Frank:
Thanks for the suggestion and help.
But when I do this _screen.activeform errors as it says it is not an object
What am I doing wrong?
Thanks to all for the suggestions.
Jack

________________________________________
From: ProfoxTech [[email protected]] on behalf of Frank Cazabon 
[[email protected]]
Sent: Friday, September 20, 2013 7:50 AM
To: [email protected]
Subject: Re: Getting Data from Another form

Jack,

Add a property to your base form class called something like
"CallingForm" and set it to NULL as default.  Then, in the called base
form class' Load, add code like this:

THIS.CallingForm = _Screen.Activeform

Then you can always refer to the previous form using

This.CallingForm

So you can:

This.CallingForm.Top = 5

This is off the top of my head but should at least get you going.

Frank.

Frank Cazabon

On 19/09/2013 05:08 PM, Jack Skelley wrote:
Good Afternoon All
I have done this before and can't get it to work now.
I have a modeless form as a top level form and run the next form. Now I want to 
get data from the top level form on the now modal form and it tells me that the 
modeless form name is not an object.
On the modal form:
lnForm_top = frmModeless.top
and it says that frmModeless is not an object.
But wexist('frmModeless') returns true...
What am I doing wrong? I have checked other instances of this in other systems 
and it works perfectly. I just can't see any differences...
Thnaks!
Jack

Jack Skelley
Senior Director, Programming/Computer Operations
New Jersey Devils
(973)757-6164
[email protected]

[excessive quoting removed by server]

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to