Syntax

code

Function: IItem.GetPropertyResultAsString(ItemPath, PropertyName: String; Default String = ''): String;


Description

Returns the result value of the given property. Returns Default if the property is not found.


Code Reference


?

code

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

var

  ps: IPlanSwift;

  est: IItem;

  itm: IItem;

begin

  // Create the Planswift Interface

  ps := coPlanswift.Create;

  // Get the Estimating Tab

  est := ps.GetItem('Job\Takeoff');

  // Get the Selected item

  itm := ps.SelectedItem;

  // Show the Name of the selected item

  ShowMessage('Property Formula: ' + itm.GetPropertyResultAsString('Name', ''));

  // Free Planswift

  ps := nil;

end;