Syntax

code

Function: NewJobEx(const JobName: WideString = ''): Wordbool;

Description

Starts a "new" job in the PlanSwift application.

Code Reference

  • 1. Create a New Form application
  • 2. Add a button to the form
  • 3. add Planswift to reference (Planswift9_tlb in the uses)
  • 4. copy code to button onclick event

code

1

2

3

4

5

6

7

8

9

10

11

procedure TForm1.psNewJobEX(Sender: TObject);

var

  ps: IPlanSwift;

begin

  //Create the PlanSwift Interface

  ps := CoPlanswift.Create;

  //Open The "New Job" Dialog box

  ps.NewJobEx('My Test Job');

  // Free the Planswift Interface

  ps := nil;

end;