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 - GetPropertyResultAsBoolean - FD

Functions - GetPropertyResultAsBoolean

Attempt to return the result of the given property as a boolean value. If the calculated result cannot be converted to a boolean value, the default value is returned.

Syntax:

Function: IItem.GetPropertyResultAsBoolean(ItemPath, PropertyName: String; Default: Boolean False): Boolean;

API Calls

Delphi

Using IItem Object Model
var  
ps: IPlanSwift;
  itm: IItem;
  isItem: Boolean;
begin
  // Create Planswift Interface
  ps := coPlanswift.Create;
  // Get the Selected item
  itm := ps.SelectedItem;
  // Check to see if Item is of the "Item Class"
  isItem := itm.GetPropertyResultAsBoolean('IsItem', False);
  if isItem then
    // ShowMesssage that Item is of Item Class'
    ShowMessage('Selectd Item is of the Item Class')
  else
    // ShowMessage that Item is not of the Item Class;
    ShowMessage('Selected Item is not of the Item Class');
  // Free the planswift Interface
  ps := nil;
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