I have a part id (example: JJ1234) where the first two characters are always alphabetic and the last 4 are always numeric. However, it is defined as a string in a struct.
I need to validate that the last four characters are numeric. How do I convert the last 4 characters to numeric to check whether or not they're numeric. Or am I going about this the wrong way?
Thanks in advance.
I need to validate that the last four characters are numeric. How do I convert the last 4 characters to numeric to check whether or not they're numeric. Or am I going about this the wrong way?
Thanks in advance.