Top
PowerCOBOL V11.0 Reference
FUJITSU Software

5.31 DeleteString Method

Description:

Deletes an item from the list box part.

ComboBox

Deletes the record when the FileType property is not "0 - No Records".

Used in controls:

ComboBox

ListBox

Used in objects

None.

Parameters:

VT_I4 - ListItemIndexS9(9) COMP-5

Description of Parameters:

The index of the item to be deleted. (The items in the list box are indexed by consecutive numbers starting from 1.)

Return value:

VT_I4 - ReturnValueS9(9) COMP-5

Zero or greater means the number of items remaining in the list box part.
-1 indicates an error.

Example:

MOVE 1 TO IndexNum
INVOKE CmList1 "DeleteString" 
  USING     IndexNum
  RETURNING ReturnValue

Backward compatibility
method name:

DELETESTRING

Backward compatibility
arguments:

S9(4) COMP-5