Hello everyone, I really need help to create this syntax.
I am a beginner. I was able to write just simple code but I couldn't restrict the number of digits and letters.
What I need is:
All inputs should be verified. Any input which fails the verification should result in a suitable error message.
Customer Reference – 4 digits only
Title- between1 and 4 alphabetic characters(allo wed Dr, Lady, Lord, Miss, Mr,Mrs,Ms,Sir.
Surname- between 1 and 20 char.
Forename- between 1 and 20 char.
Sex- 1 char (M or F upper or lower case)
Date of birth in the format DD/MM/YYYY
If anyone knows how to limit the number of digits it would be very helpful.
Thanks for your time wise people,
Vitalia
I am a beginner. I was able to write just simple code but I couldn't restrict the number of digits and letters.
What I need is:
All inputs should be verified. Any input which fails the verification should result in a suitable error message.
Customer Reference – 4 digits only
Title- between1 and 4 alphabetic characters(allo wed Dr, Lady, Lord, Miss, Mr,Mrs,Ms,Sir.
Surname- between 1 and 20 char.
Forename- between 1 and 20 char.
Sex- 1 char (M or F upper or lower case)
Date of birth in the format DD/MM/YYYY
If anyone knows how to limit the number of digits it would be very helpful.
Thanks for your time wise people,
Vitalia
Comment