# ListItem Help\[MOVED\]

**URL:** <https://tech-community.robotics.abb.com/t/listitem-help-moved/5934>\
**Category:** Robot Controller\
**Tags:** listitem, list, item\
**Created:** [January 29, 2014, 2:36pm UTC](https://tech-community.robotics.abb.com/t/listitem-help-moved/5934 "2014-01-29T14:36:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ercan](https://dub1.discourse-cdn.com/flex005/user_avatar/tech-community.robotics.abb.com/ercan/32/1220_2.png) [@Ercan](https://tech-community.robotics.abb.com/u/Ercan)\
**Post date:** [January 29, 2014, 2:36pm UTC](https://tech-community.robotics.abb.com/t/listitem-help-moved/5934/1 "2014-01-29T14:36:38Z")

</div>

Hi everybody I have a little problem with LisItem. There is a sample below. And I want to change Item2 with a data. I mean I dont want to write manually. Thanks for help  
The following example illustrates the data type listitem :

Example 1

CONST listitem list {3}:=[[stEmpty, “Item1”], [stEmpty, “Item2”],  
[stEmpty, “Item3”]];

A menu list with Item1…Item3 to use in function UIListView.

---

<div class="post-metadata">

**Author:** ![PerSvensson](https://dub1.discourse-cdn.com/flex005/user_avatar/tech-community.robotics.abb.com/persvensson/32/1040_2.png) [@PerSvensson](https://tech-community.robotics.abb.com/u/PerSvensson)\
**Post date:** [January 29, 2014, 10:21pm UTC](https://tech-community.robotics.abb.com/t/listitem-help-moved/5934/2 "2014-01-29T22:21:07Z")

</div>

Hi  
First you needed to define your list as persistant and not constant and then you can change the text using the text item in the record  
Ex.

PERS listitem list {3}:=[[stEmpty, “Item1”], [stEmpty, “Item2”],  
[stEmpty, “Item3”]];

! how to change  
list{1}.text:=“your text”;

Hope this was what you needed

---

<div class="post-metadata">

**Author:** ![Ercan](https://dub1.discourse-cdn.com/flex005/user_avatar/tech-community.robotics.abb.com/ercan/32/1220_2.png) [@Ercan](https://tech-community.robotics.abb.com/u/Ercan)\
**Post date:** [January 30, 2014, 6:26am UTC](https://tech-community.robotics.abb.com/t/listitem-help-moved/5934/3 "2014-01-30T06:26:37Z")

</div>

Thank you so much for your help. Its working
