Syntax

code

Procedure: IPlanswift.CloseJob;

Description

Closes the currently openend job.

Code Reference

  • 1. Create a New Forms Application
  • 2. Add a Planswift to the References (Planswift_Tlb)
  • 3. Add a button to the form
  • 4. copy code below to the onclick event of the button
  • 5. Compile and run

code

1

2

3

4

5

6

7

8

var

ps : IPlanswift;

begin

ps := CoPlanswift.Create;

if ps.IsJobOpen then   

  ps.CloseJob; 

ps := nil;                                                   

end;