get_item_text(item_id)
Description
Returns the item text of the identified item.
Examples
get_item_text(item_id)
Gets the item text of the current item.
x=item_id
get_item_text(x)
The variable x is set to the current item id and then used in the expression to return the current item text.
x=get_select_items()
max=table.maxn(x)
y={}
for i=1,max do y[i]=get_item_text(x[i]) end
This bit of code will set up an array of item texts for each item that was selected.
- x is an array of all selected item item ids
- max is the total number of items in the array
- the for loop creates the output vector y of each item text.
Related Rules
none
Rules