well im using vb6
and i got data as string in the list1.additem
eg.
label1.caption = Int(rnd*100)
list1.additem label1.caption
now i want a detectection of the rnd from the label before it shows on the GUI it rnd instantly i.e checks the list1.additem and if number exist then rnd label1.caption before showing on the GUI.
result:
label1.caption = "45"
list1.additem display 45
but the next click it states
label1.caption = "45"
list1.additem display 45, 45 then that is not what i want
plz post the codes here for me to use.
and i got data as string in the list1.additem
eg.
label1.caption = Int(rnd*100)
list1.additem label1.caption
now i want a detectection of the rnd from the label before it shows on the GUI it rnd instantly i.e checks the list1.additem and if number exist then rnd label1.caption before showing on the GUI.
result:
label1.caption = "45"
list1.additem display 45
but the next click it states
label1.caption = "45"
list1.additem display 45, 45 then that is not what i want
plz post the codes here for me to use.
Comment