G
Guest
Hello,
I need to check if a textbox (of size = 1) contains a specific value
(character). I could say something like
If txt1.text.equals("X") or txt1.text.equals("Y")... then...
Ideally, I would like to do something like Sql --If txt1.text In ("X", "Y",
"Z") then...
txt1.Text.Contains only deals with one string at a time so I would be back
to square one:
If txt1.text.contains("X") or txt1.text.contains("Y")...
What is the most efficient way to perform a check like this?
Thanks,
Rich
I need to check if a textbox (of size = 1) contains a specific value
(character). I could say something like
If txt1.text.equals("X") or txt1.text.equals("Y")... then...
Ideally, I would like to do something like Sql --If txt1.text In ("X", "Y",
"Z") then...
txt1.Text.Contains only deals with one string at a time so I would be back
to square one:
If txt1.text.contains("X") or txt1.text.contains("Y")...
What is the most efficient way to perform a check like this?
Thanks,
Rich