Hi
I want to check that part of a string... which is a part number... which is input by a user is an integer.
The part number starts with P or A then has a 6 digit number....my problem...I want to check that the 6 digits are numbers and not letters.
If say the number P45 is entered .. My program front fills the input number with zeros..hence P000045 would be the correct number and accepted... but I want to make sure of the digits ....so if the number entered is say P45T...I want to reject it and inform the user of an invalid entry.
Can anyone help
I want to check that part of a string... which is a part number... which is input by a user is an integer.
The part number starts with P or A then has a 6 digit number....my problem...I want to check that the 6 digits are numbers and not letters.
If say the number P45 is entered .. My program front fills the input number with zeros..hence P000045 would be the correct number and accepted... but I want to make sure of the digits ....so if the number entered is say P45T...I want to reject it and inform the user of an invalid entry.
Can anyone help