Versions Compared

Key

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

...

Code examples in VB / VBA OLE and Pascal Scripting OLE below show examples of OLE access to the API.

...


API

...

Calls



VB/VBA (OLE)

Code Block
languagevb
themeRDark
firstline1
titleUsing IItem Object Model
linenumberstrue
collapsetrue
Sub main()
    Dim planswift = CreateObject("PlanSwift9.PlanCenter")
    Dim settings = planswift.GetItem("\Settings")
    Dim property = settings.GetProperty("AllowExtenderDPI")
    Console.WriteLn(property.ResultAsBoolean());
End Sub


Code Block
languagevb
themeRDark
firstline1
titleUsing PlanSwift Object Model
linenumberstrue
collapsetrue
Sub Main()
    Dim planswift = CreateObject("PlanSwift9.PlanCenter")
    Dim nameProperty = planswift.GetProperty("\Settings","AllowExtenderDPI")
    Console.WriteLn(property.ResultAsBoolean)
End Sub

Pascal Scripting (OLE)


Code Block
themeRDark
firstline1
titleItem Object Model
linenumberstrue
collapsetrue
begin
    settings := getItem('\Settings');
    ShowMessage(GetResultAsBoolean(settings,'AllowExtenderDPI'));
end


Code Block
themeRDark
titleRoot Object Model
linenumberstrue
collapsetrue
begin
   ShowMessage(GetResultAsBoolean('\Settings','AllowExtenderDPI'));
end