Syntax

code

Function: IItem.GetItem(FullPath: String): IItem;


Description

Returns the item given by FullPath. Returns Nil if the object 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

  // Get Planswift Interface

  ps := coPlanswift.Create;

  // Get the Estimating Tab

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

  // Create a new item

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

  // ShowThe Full Path

  ShowMessage(itm.FullPath);

  // Free Planswift

  ps := nil;