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: Mike Dershowitz
  Where is Mike Dershowitz?
 Philadelphia
 Pennsylvania - United States
 Mike Dershowitz
 Tags
Subject: RE: Form Handling
Thread ID: 453 Message ID: 474 # Views: 5 # Ratings: 0
Version: Unknown Category: General VFP Topics
Date: Thursday, May 31, 2001 10:33:02 AM         
   


> I don't quite understand form handling. In a control program I am doing the following:
>
> Do form myform
> suspend
>
> do form mynextfrom
> suspend
>
> I am doing this with return statement in the form, trying to give control back to the calling program.
>
> What is the best way to do this. Basically, my control program runs a bunch of things (not all forms) and the only thing that should stop it from continuing is passing control to a form. So, how exactly can I/what is the best way to do that.
>
> Thank you in advance, and for all of your help thus far.
>
> Mike

Hi Mike,

A Prg in VFP continues top process lines of code after calls made to forms, so you need ...

DO yourmainmenu.mpr
DO FORM yourmainform
READ EVENTS

* your clean up code goes here
end of prg

So you need to call all other reports and forms that make up your application from within either yourmainmenu.mpr or yourmainform.

To terminate this application u must issue CLEAR EVENTS, to dicontiue the read in either of the above.


HTH

Regards
Ryss

ENTIRE THREAD

Form Handling Posted by Mike Dershowitz @ 5/30/2001 4:50:57 PM
RE: Form Handling Posted by Ryss Unger @ 5/31/2001 10:33:02 AM
RE: Form Handling Posted by Mike Dershowitz @ 5/31/2001 4:40:49 PM
RE: Form Handling Posted by Eric den Doop @ 5/31/2001 5:08:24 PM
RE: Form Handling Posted by Mike Dershowitz @ 6/1/2001 9:01:37 AM
RE: Form Handling Posted by Eric den Doop @ 6/1/2001 9:44:58 AM
RE: Form Handling Posted by Mike Dershowitz @ 6/1/2001 10:03:23 AM
RE: Form Handling Posted by Eric den Doop @ 6/1/2001 10:22:34 AM
RE: Form Handling Posted by Mike Dershowitz @ 6/1/2001 11:05:48 AM
RE: Form Handling Posted by Mike Dershowitz @ 6/1/2001 11:48:46 AM
RE: Form Handling - SOLVED!!!!!!! Posted by Mike Dershowitz @ 6/1/2001 1:12:27 PM