- private bool isvalidyearcode(string ycode)
- {
- if (Convert.ToInt32(ycode.Substring(1, 4).ToString()) == 0 | Convert.ToInt32(ycode.Substring(3, 2).ToString()) + 1 != Convert.ToInt32(ycode.Substring(6, 7).ToString()) | Convert.ToInt32(ycode.Substring(5, 1)).ToString() != "-") //error
- {
- MessageBox.Show("Invalid Year code");
- return false;
- }
- return true;
- }
Loading

Bryian TanPosted Jul 1, 2018, 11:02 PM
13
13
-
James AxsomPosted Jul 1, 2018, 6:27 PM
Guest UserPosted Jun 22, 2018, 2:30 AM