# Code to populate combobox on a configurator form

**URL:** <https://www.epiusers.help/t/code-to-populate-combobox-on-a-configurator-form/38062>\
**Category:** Epicor ERP 10\
**Created:** [April 18, 2017, 3:00pm UTC](https://www.epiusers.help/t/code-to-populate-combobox-on-a-configurator-form/38062 "2017-04-18T15:00:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Adrian\_Mepham](https://www.epiusers.help/user_avatar/www.epiusers.help/adrian_mepham/32/6960_2.png) [@Adrian\_Mepham](https://www.epiusers.help/u/Adrian_Mepham)\
**Post date:** [April 18, 2017, 3:00pm UTC](https://www.epiusers.help/t/code-to-populate-combobox-on-a-configurator-form/38062/1 "2017-04-18T15:00:51Z")

</div>

Hello everybody,

I am still busy converting my E9 configurators to E10. I have come up against a bit of a problem. In E9 I have code similar to

opListItems = “”.  
opInitialVal = “”.  
list = “”.  
j = inNumberFromDecimalBox - 1.

DO while (j \> 0):  
list[i] = string(j).  
j = j - 1.  
opListitems = opListitems + STRING(list[i]) + “,”.

i = i + 1.  
END.

I cannot work out how to do the same in C#. Simply put if the number in inNumberFromDecimalBox is 100 I want the combobox list to be 99 down to 1, if it is 5 then 4 down to one etc.

Greatly appreciate any help you can give me.

Thanks

Adrian.
