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.

PropertyType

PropertyType



Returns the Type attribute for the property.



Syntax:

Procedure: PropertyType: String;


API Calls

Delphi

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

Using IItem Object Model
public class PlanswiftApi
{
    private PlanSwift Planswift { get; }
    public PlanSwiftApi()
    {
        Planswift = new PlanSwift();
    }
}
Using PlanSwift Object Model
Coming soon

VB/VBA (OLE)

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

Copyright 2023 ConstructConnect