VB Code:
Private Sub Form_Load() Randomize Timer lblrandom.Caption = Int(Rnd * 3) lbltemp.Caption = Combo1.List(lblrandom.Caption) End Sub
I have this code and I have loaded into combo1 a textfile.But this doesn't get anything into lbltemp.caption.Any ideas?I know it has 4 entries so I put 3.Can I generalize it by multiptying by como1.listcount or something?
Thanks in advance




Reply With Quote