Quote:

I am trying to show the small and largest number in a text box from the listview; however, it did not succeed after I spent 3 hours to google and try to fix it.

First train yourself to find min a&nd max in a list of numbers by hand with a sheet of paper and a pencil.

Obviously you already found functions to find minimum or maximum of 2 numbers, try to take advantage of them.

Note that max and min are solved using the same procedure.

The answers to those questions are your algorithm.

- in a list of 1 number, how do you find minimum ?

- in a list of 2 numbers, how do you find minimum ?

- you know minimum of a list, if you add 1 number, how do you find new minimum ?