Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

15
  • 4
    +1: With all the other poor answers, this is the only correct one. Commented Jul 31, 2013 at 4:38
  • agreed with @leppie ) Commented Jul 31, 2013 at 4:39
  • That did it! I'll test now! :D @Matthew prntscr.com/1iirtr this is what happened Commented Jul 31, 2013 at 4:40
  • 1
    In order to avoid possible runtime error you can use int.TryParse method. Something like this: int result = -1; Int32.TryParse(VersionText.Tag, out result); if (result != -1) {//your code} Commented Jul 31, 2013 at 4:44
  • @MatthewH in that case, it's best to show us the format of VersionText in your question. I.e. how the variables are declared. Commented Jul 31, 2013 at 4:45