Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

    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


API

...

Calls

Delphi

Code Block
languagedelphi
firstline1
titleUsing PlanSwift Object Model
linenumberstrue
//PlanSwift code:
var
  sVersion: string;
begin
  sVersion := PlanSwift.CurrentVersion;
end;

//FreshDesk code:
procedure TForm1.psCurrentVersion(sender: TObject);
var
  ps: IPlanSwift;
begin
//Create Planswift Interface
ps := coPlanswift.Create;
//Show Current Version of Planswift
ShowMessage(ps.CurrentVersion);
//Free the Planswift Interface
ps := nil;
end;


C#

Code Block
languagec#
themeRDark
firstline1
titleUsing IItem Object Model
linenumberstrue
public class PlanswiftApi
{
    private PlanSwift Planswift { get; }
    public PlanswiftApi()
    {
        Planswift = new PlanSwift();
    }
}





Code Block
languagec#
themeRDark
firstline1
titleUsing PlanSwift Object Model
linenumberstrue
Coming soon


VB/VBA (OLE)


Code Block
languagevb
firstline1
titleUsing IItem Object Model
linenumberstrue
Coming soon
Code Block
languagevb
firstline1
titleUsing PlanSwift Object Model
linenumberstrue
Coming soon