Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Stopping a process that is taking so long
Message
 
À
06/01/2005 15:45:25
Jean Haidar
Arkansas Blue Cross/Blue shield
Little Rock, Arkansas, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00974828
Message ID:
00975232
Vues:
13
If in this method You use some kind of cycle You can put a flag that shows You to interupt the cykle, something like:
****
** Add a timer in class

IF VARTYPE(loXMLObject) = [O]	
   this.StopCykle = .f.
   this.Timer.Interval = 60000 && 60 sec.
   lnRetVal = THIS.callreports(loXmlObject,loProposalRecord.Prop_ID,llCover,llUwInfo,llQuote, llFinalRate, llAlgorithm,                                         llAlgoDetail, llLOB, llSchedule, llApp, .F.,cPrintOption,cFileName,lcSendMail,lcUserName)
   this.Timer.Interval = 0


*** In Timer event
   this.StopCykle = .t.

*** In CallReports Method
   SCAN
       IF thisform.StopCykle
          RETURN .f.
       ENDIF
       .....
   ENDSCAN     
But I do not know how this method "CallReports" worked to suggest something more acurate
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform