guides:programming:programmers_reference_manual:text_by_pos_message

TEXT_BY_POS message

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

Combo box, edit table, and list box.

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

For TEXT_BY_POS, the Send_Message function has the following parameters.

ParameterDescription
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.
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)
 
**
**
  • guides/programming/programmers_reference_manual/text_by_pos_message.txt
  • Last modified: 2024/06/19 20:20
  • by 127.0.0.1