Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Exit with Error
Message
De
17/01/2002 11:15:12
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Exit with Error
Divers
Thread ID:
00606128
Message ID:
00606128
Vues:
59
I am new to the universal thread so take it easy on me. I am still not sure exactly how to use the site since I joined today. What I am trying to do is send an error code back to a scheduling application called Techscheduler. I put Visual Foxpro jobs into the scheduler to run them at specific times. Our corporations quarters are 5,4,4 in respect to the way the weeks fall. There is no functionality to use this in the scheduling application. What I need to do is run a prestart job in VFP that will evaluate the weeks such as week 1,6,10,14 etc.. That's the easy part. If it is not one of these weeks I want to send an error code back to the scheduling job so that it will not run the program. If it is one of these weeks, then of course I want to send a successful code back to the scheduler. The scheduling application states that it can receive the exit state of the application that it has started (ie VFP). I have asked for an example from the support site of the scheduling app, and they sent me something in Delphi. I cannot get any variation of this code to work in Foxpro. The scheduling app has a dll that you can register in order to use the functionality of the scheduler in apps, but this is mainly for starting a job. It can also except some api calls. What I would like to know is if there is anyway to exit VFP so that the state of the exit is a failure? The normal quit command reports a success every time.

Thanks, if you can help.
Chris Whisenant
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform