Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Ryss Unger
  Where is Ryss Unger?
 Cape Town
 South Africa
 Ryss Unger
 To: Cheryl B
  Where is Cheryl B?
 Xenia
 Ohio - United States
 Cheryl B
 Tags
Subject: RE: Calling a form from another form
Thread ID: 787 Message ID: 807 # Views: 2 # Ratings: 0
Version: Unknown Category: General VFP Topics
Date: Thursday, June 14, 2001 2:37:26 PM         
   


> > So open the form in the menu choose Form->New Property and as a name type in:
> > aLinkedForms[1,1]
>
> In the LOAD EVENT of the main form, do I need to add:
> DIMENSION aLinkedForms[1, 1]
> as well? Do I need to put the name of the child form somewhere?
>
> I'm sorta grasping what you're explaining here, but I'm not quite getting it. I do appreciate the help, though.
>
> Cheryl A Bellucci
> Vice President
> Rapp Systems Corporation
Hi Cheryl,
With due respect I think this is an exceptionally complicated way.

Your problem is the fact that that the calling form is modal. If it were modeless, you would not have a problem.

Data can be returned from the second form if you create a object refernce to the calling form.

Here again I stumbled on a trick.

Public oform
oform = '' "

In initial event of calling form:
store this to oform

You will then be able to call for example ofrom.text1.refresh from the second form or set focus to a object in the calling form from the second form, before or in the destory event.

However do not forget to release oform before you attempt to release the call form.


HTH
Regards
Ryss

ENTIRE THREAD

Calling a form from another form Posted by Cheryl Bellucci @ 6/14/2001 8:59:39 AM
RE: Calling a form from another form Posted by Boudewijn Lutgerink @ 6/14/2001 9:32:44 AM
RE: Calling a form from another form Posted by Cheryl Bellucci @ 6/14/2001 1:56:55 PM
RE: Calling a form from another form Posted by Ryss Unger @ 6/14/2001 2:37:26 PM
RE: Calling a form from another form Posted by Cheryl Bellucci @ 6/14/2001 2:53:15 PM
RE: Calling a form from another form Posted by Ryss Unger @ 6/14/2001 4:08:34 PM
RE: Calling a form from another form Posted by Dale Dedoroy @ 6/14/2001 10:54:17 PM
RE: Calling a form from another form Posted by Boudewijn Lutgerink @ 6/14/2001 11:30:26 PM
RE: Calling a form from another form Posted by Cheryl Bellucci @ 6/15/2001 1:30:10 PM
RE: Calling a form from another form Posted by Eric den Doop @ 6/15/2001 7:50:48 PM