Ordered numbers

Hello:
How to order from least to greatest, 3 random numbers, taken from a list of 10.
Example: (3,4,5) (1,3,7) (2,9,10) etc.
Thx.
Strength and courage against the coronavirus!

1 Like

Maybe this procedure from @Italo will help:

2 Likes

I will take a look. Thank you

1 Like

Each of the three numbers has to be assigned to three labels.
Example: (2,9,10)
2 to label1, 9 to label2, 10 to label3
Thank you

1 Like

set Label1.Text to select item 1 from list ...
set Label2.Text to select item 2 from list ...
set Label3.Text to select item 3 from list ...

1 Like

Excuse me ABG, what I need for the 3 non-repeating and disordered random numbers (5,2,7) taken from a list containing from 1 to 10, correspond to the labels in order:
Label1 (2)
Label2 (5)
Label3 (7)
Thank you

Try this:

1 Like

Pardon me, I forgot to mention that you have to sort the list before picking items 1,2,3 from it.

1 Like

Thank you Anke, but “list from csv row text” have “1,2,3,4,5,6,7,8,9,10”
I get 3 random numbers, example: (8,5,3)
(I don’t know the numbers and the order, I do not want to know)
and rename labels from minor to major
Set_Label1_Text to 3
Set_Label2_Text to 5
Set_Label3_Text to 8
(Now I do know the numbers and they are in order)
Thx again

Try this:

1 Like

Ok Anke, have helped me.
Thank you

I forgot to mention that sorting only works for numbers between 1 and 9.

grafik