...
- Create a New Form application
- Add a button to the form
- Add PlanSwift to reference (Planswift9_tlb in the uses)
- Copy code to button onclick event
API
...
Calls
Delphi
Code Block | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||
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 | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||
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 | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||
Coming soon |
VB/VBA (OLE)
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
Coming soon |
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
Coming soon |