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.

Functions - ResultAsFloat - FD

Functions - ResultAsFloat

Returns the Type attribute for the property.

Syntax:

Function: PropertyType: String;

API Calls

Delphi

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

C#

Using IItem Object Model
 
Using PlanSwift Object Model
 

VB/VBA (OLE)

Using IItem Object Model
 
Using PlanSwift Object Model
 

Pascal Scripting (OLE)

Item Object Model
 
Root Object Model
 

Pascal Scripting

Item Object Model
 


Using the PlanSwift Object Model
 

Copyright 2023 ConstructConnect