Top
PowerCOBOL V11.0 Reference
FUJITSU Software

5.28 Delete Method

Description:

Deletes the specified item or object.

ListView

Deletes a specified ListItem object.

TreeView

Deletes the specified root Node object and all child Node objects included in it.

Node

Deletes a child Node object.

Used in controls:

ListView

TreeView

Used in objects:

Node

Parameters:

VT_I4 - ObjectIndexS9(9) COMP-5

Description of Parameters:

ListView

The index of a ListItem object.

TreeView

The index of a root Node object.

Node

The index of a child Node object.

Return value:

VT_I4 - ReturnValue S9(9) COMP-5

ListView

Number of the remaining ListItem objects.

TreeView

Number of the remaining brother root Node objects.

Node

Number of the remaining brother Node objects.

Example:

WORKING-STORAGE SECTION.
 01 IndexNum		PIC S9(9) COMP-5.
 01 ReturnValue	PIC S9(9) COMP-5.
PROCEDURE	   DIVISION.
    Move 1 To IndexNum
    INVOKE CmListView1 "Delete" 
      USING     IndexNum
      RETURNING ReturnValue

Backward compatibility
method name:

None.