FormTreeControl.delete Method [AX 2012]

Deletes the specified item from the form tree control.

public boolean delete(int Idx)

Run On

Client

Parameters

Idx
Type: int
An integer that specifies the zero-based index of the item to delete.

Return Value

Type: boolean
true if the item was successfully deleted; otherwise, false.

The following example shows how to delete the first item in the form tree control.

// The ftc variable was a previously allocated  
// FormTreeControl variable. 
boolean bDelete; 
 
bDelete = ftc.delete(0);

Community Additions

ADD
Show: