Description

Return the text of the specified list item. Item is specified either by position or by (column, row) coordinates (for an edit table control).

Applies to

Combo box, edit table, and list box.

Syntax

text = Send_Message(controlID, "TEXT_BY_POS", position [, edittablerow ])

Parameters

For TEXT_BY_POS, the Send_Message function has the following parameters.

ParametersDescription
ControlIDSame information as contained in the ctrlEntID variable, from an event handler. The structure is Parent.Object, where Parent is the window identifier, and Object is the name of the control, and where Parent and Object are delimited by a period.
PositionFor a combo box and list box, pass the item list position. For an edit table, pass the column coordinate. For edit table, pass the column coordinate. When 0 for an edit table, all columns are specified, thereby passing all data in the row specified by the edittablerow parameter.
EdittablerowPass the row coordinate for the edit table control. When 0 for an edit table, all rows are specified, thereby passing all data in the column specified by the position parameter.

See Also

SELPOS propertyCELLPOS property

Example

To extract a row of data from an edit table:
row = Send_Message(CtrlEntID, "TEXT_BY_POS", 0, rownumber)
To extract a column of data from an edit table:
column=Send_Message(CtrlEntID, "TEXT_BY_POS", columnnumber,0)
To extract the data in column 3, row 4 of an edit table:
column=Send_Message(CtrlEntID, "TEXT_BY_POS", 3, 4)
  • No labels