Nanor
Well-Known Member
I'm doing an assignment for college and was wondering if I could query y'all. I have 6 text boxes and I have to check to make sure each text box has a unique value. At the minute the only way I can think to check this is to use an if statement along the lines of
I'm sure you understand it's a pretty massive if statement. Is there any quick way I can check to see if each textbox contains a unique value?
You'll also be thrilled to hear I'm using VB.net.
Cheers!
EDIT: Also each value is an integer, should that matter.
Code:
if (txtOne.Text = txtTwo.Text OR txtOne.Text = txtThree.Text OR ...
I'm sure you understand it's a pretty massive if statement. Is there any quick way I can check to see if each textbox contains a unique value?
You'll also be thrilled to hear I'm using VB.net.
Cheers!
EDIT: Also each value is an integer, should that matter.