Versions Compared

Key

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

PropertyType


...

Returns the Type attribute for the property.

...

Procedure: PropertyType: String;


API

...

Calls

Delphi

Code Block
languagedelphi
themeRDark
firstline1
titleUsing PlanSwift Object Model
linenumberstrue
collapsetrue
PlanSwift Code:


Result := Property.PropertyType;


FreshDesk Code:


procedure psPropertyType;
var
  ps: IPlanSwift;
  itm: IItem;
  i: Integer;
  prop: IPropertyObject;
  propname,proptype,txt: WideString;
begin
  // Create Planswift Interface
  ps := coplanswift.Create;
  //Get the Selected Item
  itm := ps.SelectedItem;
  //cycle Thorugh all Properties and get name and type
  for i := 0 to itm.propertyCount - 1 do begin
    //Get the first property in the array
    prop := itm.PropertyItem[i];
    //Get the Property Name
    propname := prop.name;
    //Get the Property Type
    proptype := prop.PropertyType;
    //Store Text value
    txt := txt + propname + ': ' + proptype + #13#10;
  end;
  //Show message of all properties
  showMessage(txt);
  //Free the Planswift Interface
  ps := nil;
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();
    }
}


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