|
|
Job Component |
ResetJob method |
|
ResetJob() |
Returns: None |
|
The ResetJob method reinitializes the jobs status file, control file and statistics file. Generally you want to run this function after you job aborts or is stopped to clean up and prepare for the next execution.
Example:
[Visual Basic .NET]
Dim Status As ExportBudget.CRJobStatus |
|
Status = myExportBudgetJob.GetJobStatus() |
|
If Status.JobStatus = ExportBudget.CRJobStatus.StatusTypes.Finished Then |
MsgBox("Your job Finished!") |
Else |
MsgBox("Your job " + Status.JobStatus.ToString()) |
myExportBudgetJob.ResetJob() |
End If |
|
[C#]
ExportBudget.CRJobStatus Status; |
|
Status = myExportBudgetJob.GetJobStatus(); |
|
if (Status.JobStatus == ExportBudget.CRJobStatus.StatusTypes.Finished) |
{ |
MessageBox.Show("Your Job Finished!"); |
} |
else |
{ |
MessageBox.Show("Your Job " + Status.JobStatus.ToString()); |
myExportBudgetJob.ResetJob(); |
} |
|
|
© 2003 - 2007 Relational Solutions, Inc. - All rights reserved