Top
PowerCOBOL V11.0 Reference
FUJITSU Software

5.6 AddString Method

Description:

Adds the character string contained in the parameter to the end of the list or, if the Sorted property is set to True, inserts the character string in the list at the appropriate position to maintain the sort order.

ComboBox

Adds the character string contained in the TextString parameter to the end of the list, or in sort order if Sorted is True, when the FileType property is something other than "0 - Standard Text File".

Used in controls:

ComboBox

ListBox

Used in objects

None.

Parameters:

VT_BSTR - TextStringX(8192)

Description of Parameters:

Contains the string to add to the list.

Return value:

VT_I4 - ReturnValueS9(9) COMP-5

If positive, this is the index of the added item.

-1 indicates an error.

Example:

MOVE "This is a new String" 
  TO StringToAdd
INVOKE ComboBox-Name "AddString"
  USING     StringToAdd
  RETURNING ReturnValue

Backward compatibility
method name:

ADDSTRING
ADDSTRING256

Backward compatibility
arguments:

ADDSTRING: X(64)
ADDSTRING256: X(256)