mixed wb_get_text (int wbobject [, int item [, int subitem]])
Gets the text from a window, control, or control item.
See the following table.
| Class |
item |
subitem |
What it retrieves |
|---|---|---|---|
|
NULL or empty |
any |
The text of the currently selected line |
|
|
non-negative integer |
any |
The text of the line indicated by variable item |
|
|
NULL or empty |
any |
The text of the currently selected line |
|
|
non-negative integer |
any |
The text of the line indicated by variable item |
|
|
negative integer |
any |
The text of the editable field in non-read-only combo boxes |
|
|
non-negative integer |
integer |
The text of the cell specified in item, subitem (row, column) |
|
|
non-negative integer |
NULL |
An array containing the texts of the row specified in item. |
|
|
NULL |
any |
An array containing the texts of the selected row.¹ |
|
|
non-negative integer |
NULL |
The text of the node specified in item. |
|
|
NULL |
any |
The text of the currently selected node. |
|
|
Other controls |
empty |
any |
The control caption. |
|
Window |
empty |
any |
The window caption. |
¹ If no cells are selected, the function will return a two-dimensional array containing the text of all cells in the control, and the array will end when it reaches the first blank line. If one or more cells are selected, the function will return a two-dimensional array containing the text of the selected cells in the control. Use the following table:
wb_get_selected
wb_get_value
wb_set_text
Control functions
Window functions