Greetings,
There is not inbuilt function available, it is called validation.
At data entry level, you require a validation routine. You have to pay programmers to do the work.
Progress is this massively efficient 4GL/ABL, though it cant do all the work for you.