04-03-2018 02:33 AM
Hi!
I have two controls Min and Max (int), I want to have the range of values between these 2 values in a list box.
For example : if Min = 10 and Max = 20 , i want to have, as an indicator, a list box where there are all the values (int) between 10 and 20 (10,11,12...20).
Thank you in advance for your help.
04-03-2018 02:45 AM
Hi
Looking for something like this?
Regards
J
04-03-2018 02:46 AM - edited 04-03-2018 02:49 AM
Hi samehA,
if Min = 10 and Max = 20 , i want to have, as an indicator, a list box where there are all the values (int) between 10 and 20 (10,11,12...20).
- create an array of your numbers
- convert that array to strings
- set those strings in your listbox using a "item names" property node
Which of these steps is a problem for you?
Edit: As you got a solution in the mean time I can suggest a variant too:
04-03-2018 02:52 AM
Didn't think of the ramp.. this is why you're a Knight i guess!
Cheers
J
04-03-2018 02:56 AM - edited 04-03-2018 02:57 AM
Hi J,
Didn't think of the ramp.. this is why you're a Knight i guess!
The ramp is just for fun, using the FOR loop as you did is my preferred way too.
But I'm a Knight because I would place the Add function after the loop - it's polymorphic… 😄