Menu Creation Question(s)
I am in the process of creating a series of menus for a program I am writing. I have the Menu_Opt field defined as:
This way I can support a three character option and the necessary null end character (I believe is what they're called). I would like to be able to validate that the first character is an upper case letter and if it is not, I want to convert it to upper case. Then, I want to make sure that the two digit portion is within a certain number range. This is how I would like to validate that it is a valid option.
My question is, should I create a structure to support the menu option, or use a substring function to extract each part, or do you have other suggestions? Either way, may ask for your advice and how I can do this?