Jasper Yu says to YSITD
Dim combination_element(SpecList.Items.Count - 1) As Integer For i As Integer = 0 To SpecList.Items.Count - 1 combination_element(i) = Int(Total_Width.Value / SpecList.Items(i).ToString) Next