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
themeRDark
firstline1
titleUsing PlanSwift Object Model
linenumberstrue
collapsetrue
var
  VersionA : WideString
  VersionB : WideString
  nResult  : integer

procedure psCompareVersion
var
  ps: IPlanSwift
begin
  // Create Planswift Interface
  ps := Planswift

  // Get Version of PlanSwift
  VersionA := ps.CurrentVersion
  VersionB := '9.0.0'                                                 

  // Compare the two version
  nResult := ps.CompareVersion(VersionB, VersionA)

  // Get the resulting value
  ShowMessage(intToStr(nResult))

  // Free PlanSwift Interface
  ps := nil
end

begin
  psCompareVersion
end


C#

Code Block
languagec#
themeRDark
firstline1
titleUsing IItem Object Model
linenumberstrue
collapsetrue
public class PlanswiftApi
{
    private PlanSwift Planswift { get; }
    public PlanswiftApi()
    {
        Planswift = new PlanSwift();
    }
    public int CompareVersions(string versionA, string versionB)
    {
        var result = Planswift.CompareVersion(versionA, versionB);
        return result;
    }
}


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