Syntax

code

Function: IItem.GetItemByGUID(aGUID: String): IItem;


Description

Returns the child item specified by aGUID.


Code Reference


code

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

var

  ps: IPlanSwift;

  est: IItem;

  itm: IItem;

  aitm: IItem;

begin

  // Create the Planswift Interface

  ps := coPlanswift.Create;

  // Get The Estimating Tab

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

  // Create a new item

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

  // Get That Item By GUID

  aitm := itm.GetItemByGUID(itm.GUID);

  // Show Item Name got by guid

  ShowMessage('Item Got BY GUID is: ' + aitm.Name);

  // Free Planswift

  ps := nil;