# Text in ComboBox

**URL:** <https://tech-community.robotics.abb.com/t/text-in-combobox/6209>\
**Category:** ScreenMaker\
**Created:** [June 30, 2014, 11:33am UTC](https://tech-community.robotics.abb.com/t/text-in-combobox/6209 "2014-06-30T11:33:32Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jiri\_AGC\_CZ](https://avatars.discourse-cdn.com/v4/letter/j/7feea3/32.png) [@Jiri\_AGC\_CZ](https://tech-community.robotics.abb.com/u/Jiri_AGC_CZ)\
**Post date:** [June 30, 2014, 11:33am UTC](https://tech-community.robotics.abb.com/t/text-in-combobox/6209/1 "2014-06-30T11:33:32Z")

</div>

Hello,

I need to put text from rapid variable (string) to list of members in Combo box. How can I do that? When I connect item with controller variable I get only text from appearance not from string variable.

Thank you for support. BR Jiri.

---

<div class="post-metadata">

**Author:** ![carlosmtz2000](https://avatars.discourse-cdn.com/v4/letter/c/e79b87/32.png) [@carlosmtz2000](https://tech-community.robotics.abb.com/u/carlosmtz2000)\
**Post date:** [June 30, 2014, 2:42pm UTC](https://tech-community.robotics.abb.com/t/text-in-combobox/6209/2 "2014-06-30T14:42:33Z")

</div>

Hi Jiri,

Is the rapid defined as an array?

MODULE MainModule  
**PERS string stringVar{5}:=[“uno”,“dos”,“tres”,“cuatro”,“cinco”];**  
PROC main()  
  
ENDPROC  
ENDMODULE

BR/Carlos

---

<div class="post-metadata">

**Author:** ![Jiri\_AGC\_CZ](https://avatars.discourse-cdn.com/v4/letter/j/7feea3/32.png) [@Jiri\_AGC\_CZ](https://tech-community.robotics.abb.com/u/Jiri_AGC_CZ)\
**Post date:** [July 1, 2014, 6:24am UTC](https://tech-community.robotics.abb.com/t/text-in-combobox/6209/3 "2014-07-01T06:24:57Z")

</div>

Hello, no, when it´s defined as array, then everything is ok and I can see text defined in variable. But when It´s only one PERS string… than I can see only text field defined in combo box settings.

BR Jiri.

---

<div class="post-metadata">

**Author:** ![carlosmtz2000](https://avatars.discourse-cdn.com/v4/letter/c/e79b87/32.png) [@carlosmtz2000](https://tech-community.robotics.abb.com/u/carlosmtz2000)\
**Post date:** [July 1, 2014, 5:27pm UTC](https://tech-community.robotics.abb.com/t/text-in-combobox/6209/4 "2014-07-01T17:27:22Z")

</div>

Hi Jiri,

I am not sure if I am understanding your real need. Can you put a sample RAPID code?

The ComboBox allows you to list values, either by binding the collection of the ComboBox to a RAPID array, or by adding one item at a time (fixed values or individual RAPID data). In both cases, the value of the RAPID data (single or the array) will be presented in the UI.

BR/Carlos

---

<div class="post-metadata">

**Author:** ![Jiri\_AGC\_CZ](https://avatars.discourse-cdn.com/v4/letter/j/7feea3/32.png) [@Jiri\_AGC\_CZ](https://tech-community.robotics.abb.com/u/Jiri_AGC_CZ)\
**Post date:** [July 2, 2014, 7:52am UTC](https://tech-community.robotics.abb.com/t/text-in-combobox/6209/5 "2014-07-02T07:52:17Z")

</div>

Hello, as you can see, when I add variable to combo box via add/remove items, I get only default text in combo box list.

 ![1.jpg](https://europe1.discourse-cdn.com/flex005/uploads/robotics1/original/2X/9/92b0378c5d80cf402017be76822ebdf0d5318808.jpeg)  
 ![2.jpg](https://europe1.discourse-cdn.com/flex005/uploads/robotics1/original/1X/4d6fdbe0ffc895d77fbe1a203755fdde35b1464e.jpeg)  
 ![3.jpg](https://europe1.discourse-cdn.com/flex005/uploads/robotics1/original/2X/0/010092ca21b0f8bb6a77d0143d15796be5bf6436.jpeg)  
 ![4.jpg](https://europe1.discourse-cdn.com/flex005/uploads/robotics1/original/2X/d/d5afaef89b50dd447a2215e5a092b4f3b2bfccce.jpeg)

---

<div class="post-metadata">

**Author:** ![carlosmtz2000](https://avatars.discourse-cdn.com/v4/letter/c/e79b87/32.png) [@carlosmtz2000](https://tech-community.robotics.abb.com/u/carlosmtz2000)\
**Post date:** [July 3, 2014, 12:33pm UTC](https://tech-community.robotics.abb.com/t/text-in-combobox/6209/6 "2014-07-03T12:33:46Z")

</div>

Hi Jiri,

I was able to reproduce this bug. I also report this to our support team.

Thanks for your explanation. My guess is that you will need a workaround in the short term while this is fixed (either put them in an array, or do some extra coding in C#)

Thanks again for your feedback

BR/Carlos

---

<div class="post-metadata">

**Author:** ![Jiri\_AGC\_CZ](https://avatars.discourse-cdn.com/v4/letter/j/7feea3/32.png) [@Jiri\_AGC\_CZ](https://tech-community.robotics.abb.com/u/Jiri_AGC_CZ)\
**Post date:** [July 3, 2014, 1:01pm UTC](https://tech-community.robotics.abb.com/t/text-in-combobox/6209/7 "2014-07-03T13:01:23Z")

</div>

Hello, I use array but I must change many things in rapid code.

Thank you for support.
