Hi All. I've been trying to get to grips with
VB* for a while and I'm having trouble with arrays.
I'm trying to use one to select 6 random numbers and place them in 6 different text boxes, without letting them duplicate a value.
Does anyone know how I would go about this? I'm getting myself so confused. All my books talk about i's and ubounds and it's getting me in a tizz!
So far I have this:
txt1stNo.Text = CStr(Int(Rnd() * 49))
txt2ndNo.Text = CStr(Int(Rnd() * 49))
txt3rdNo.Text = CStr(Int(Rnd() * 49))
txt4thNo.Text = CStr(Int(Rnd() * 49))
txt5thNo.Text = CStr(Int(Rnd() * 49))
txt6thNo.Text = CStr(Int(Rnd() * 49))
Any ideas?