Code to populate combobox on a configurator form

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.