Syntax

code

Function: IItem.GetPropertyFormula(ItemPath, PropertyName: String): String;


Description

Returns the formula string for the property specified by ItemPath and PropertyName.
Returns an empty string ('') if the item or property is not found.


Code Reference


code

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

var

  ps: IPlanSwift;

  est: IItem;

  itm: IItem;

begin

  // Create the Planswift Interface

  ps := coPlanswift.Create;

  // Get the Estimating item

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

  // Create a New Area item

  itm := est.NewItem('Area', 'Property Formula Example');

  // Show the Property name

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

  // Free Planswift

  ps := nil;