I tried to get help on this on a different thread, but I didnt get any help on specifically for this, so im just making a thread just for this. The first problem is im trying to make a five digit string, it needs to be 5 digits long basically it cant be less then 10000 and more then 99999, but when I run the code, all the label says is "this is a five digit code" from the time I start putting in numbers to even if I got a whole lot of numbers are in it, it remands the same label, what could be wrong or am I doing this wrong
Dim myDouble As String Private Sub TextBox1_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox1.TextChanged If myDouble >= 10000 Or myDouble <= 99999 Then lblmessage.Text = "this is a five digit code" Else lblmessage.Text = "Not a 5 digit code, please renter a new one" End If End Sub
For the three character sting, I have
ON: Motor is online and running
OFF: Motor is online, but not running
MNT: Motor is undergoing maintenance and cleaning
NA: Motor is not available
I dont know how to start this, do I make a specific thing saying that these are the only ones you can use and if you entered something else then a text box saying incorrect or something like that?