Check if string equals another string plus a number

  • Thread starter Thread starter WeekSky
  • Start date Start date
W

WeekSky

Guest
I imagine this would be pretty simple, but I'm not sure how to do it.

I want to check whether the string "fileName" equals the text in a textBox, but if the text in the textbox is that string plus any number, I want the check to be positive as well.

if (fileName == textBox1.Text || fileName == textBox1.Text + (any number))

How could I do this?

Continue reading...
 
Back
Top