To open any link in a new tab, preserving your position in the current article, just hold down the <CTRL> key on your keyboard before clicking the link or click using your mouse wheel.

CompareVersion

CompareVersion



Compares two different versions of PlanSwift.



Syntax:

Procedure: CompareVersion;

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


API Calls

Delphi

Using PlanSwift Object Model
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#

Using IItem Object Model
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;
    }
}
Using PlanSwift Object Model
Coming soon


VB/VBA (OLE)

Using IItem Object Model
Coming soon
Using PlanSwift Object Model
Coming soon

Copyright 2023 ConstructConnect