Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. sponsors. rss.
 From: Stefan Wuebbe
  Where is Stefan Wuebbe?
 Hamburg
 Germany
 Stefan Wuebbe
 To: vinod kabdal
  Where is vinod kabdal?
 Delhi
 India
 vinod kabdal
 Tags
Subject: RE: Shut Down all System in Network
Thread ID: 198256 Message ID: 198291 # Views: 34 # Ratings: 0
Version: Visual FoxPro 8 Category: Win32API programming
Date: Friday, October 10, 2008 11:49:23 AM         
   


> >
> > When there is a "Read Events" being active, issuing "Clear Events" should be enough.
> > In addition, the QueryUnload() event of each active form will run, so that you can ask the user whether modified data shall be committed or reverted, and so on.
> >
> > Additionally, you can scan the _scren.Forms collection to see whether there any modal forms running, e.g. in pseudo code:
> >
> > Local loForm
> > For Each loForm in _screen.Forms
> >     If VarType(m.loForm) = 'O' And PemStatus(m.loForm,"YourShutdown",5)
> >         loForm.yourShutdown()
> >     Endif
> > Next
> > 

> >
> > In other words, from a client-app point-of-view, the situation would be similar to a user clicking the upper-right X close button of the VFP main window _screen. (Or the close button of the main top-level form, when you have _screen.Visile=.F., respectively.)
> >
> > hth
> > -Stefan
>
> Pls tell me what is funtion yourShutdown() in detail

It would contain everything you need to do in your particular form/class when the form is getting closed "unexpectedly" - or "from outside", so to say.
So it depends on your requirements, e.g. you might want to check whether any alias contains "dirty" data via GetNextModified() and GetFldState() and so on.


hth
-Stefan



COMPLETE THREAD
Shut Down all System in Network Posted by vinod kabdal @ 10/10/2008 8:10:01 AM
RE: Shut Down all System in Network Posted by Stefan Wuebbe @ 10/10/2008 8:18:35 AM
RE: Shut Down all System in Network Posted by vinod kabdal @ 10/10/2008 8:54:16 AM
RE: Shut Down all System in Network Posted by Stefan Wuebbe @ 10/10/2008 9:01:50 AM
RE: Shut Down all System in Network Posted by vinod kabdal @ 10/10/2008 9:13:17 AM
RE: Shut Down all System in Network Posted by Stefan Wuebbe @ 10/10/2008 9:17:31 AM
RE: Shut Down all System in Network Posted by vinod kabdal @ 10/10/2008 11:25:15 AM
RE: Shut Down all System in Network Posted by Stefan Wuebbe @ 10/10/2008 11:49:23 AM
RE: Shut Down all System in Network Posted by Stefan Wuebbe @ 10/10/2008 9:13:57 AM
RE: Shut Down all System in Network Posted by vinod kabdal @ 10/11/2008 1:45:25 PM
RE: Shut Down all System in Network Posted by tushar @ 10/10/2008 9:06:20 AM
RE: Shut Down all System in Network Posted by vinod kabdal @ 10/10/2008 11:20:57 AM
RE: Shut Down all System in Network Posted by tushar @ 10/10/2008 1:53:03 PM
RE: Shut Down all System in Network Posted by Kishore Kumar @ 10/10/2008 4:21:28 PM
RE: Shut Down all System in Network Posted by vinod kabdal @ 10/11/2008 9:29:57 AM
RE: Shut Down all System in Network Posted by tushar @ 10/11/2008 9:56:47 AM
RE: Shut Down all System in Network Posted by Jun Tangunan @ 10/11/2008 12:01:14 PM