Hello there and good day to you. I am working on a program that simply randomized numbers. They are a listbox, and when I want to copy the top number from the listbox to a label caption, I use this code.
C1NumLBLI(1).Caption = IList.List(lIndex)
However, I would like to copy the top 5 numbers from the listbox into label captions.
For example the array number(1) would have the first / top number in the list,
C1NumLBLI(2).Caption would have the second number down from the top
C1NumLBLI(3).Caption would have the 3rd,
C1NumLBLI(4).Caption 4th
C1NumLBLI(5).Caption 5th
Would anyone know how to just ask the listbox for the 2nd number, I think the listindex is item 0, but would that mean if I wanted the second number in the listbox I would put C1NumLBLI(2).Caption = Ilist.list(1)??
Thanks!
C1NumLBLI(1).Caption = IList.List(lIndex)
However, I would like to copy the top 5 numbers from the listbox into label captions.
For example the array number(1) would have the first / top number in the list,
C1NumLBLI(2).Caption would have the second number down from the top
C1NumLBLI(3).Caption would have the 3rd,
C1NumLBLI(4).Caption 4th
C1NumLBLI(5).Caption 5th
Would anyone know how to just ask the listbox for the 2nd number, I think the listindex is item 0, but would that mean if I wanted the second number in the listbox I would put C1NumLBLI(2).Caption = Ilist.list(1)??
Thanks!