hi.
uhm. im having a problem with coding such conditional statement that would check if a certain input contains a certain subs tring.
for example. i have a text box that is used for the user to input a string. (0,1)
then i have a command button to determine if the string inputted contains a sub string of '1' on the 3rd position. if the inputted string includes '1' at the third position then a label would display "accepted!" if not, "not accepted"

"The number "3" on the right side of the text1.text pertains to the position of the input text(3rd position)

thanks.but what happens is here is that the conditions waiting for an input of 1 before it says not accepted. it would be better if the labels caption of not accepted would change as soon as the 3rd sub string of 0 is inputted.

thanks.but what happens is here is that the conditions waiting for an input of 1 before it says not accepted. it would be better if the labels caption of not accepted would change as soon as the 3rd sub string of 0 is inputted.

Ohh i see, then you have to put the code instead in the textbox itself and not with the command button.