The function contains an IF statement to check a number input by the user. If the number is illegal, the user is prompted of this. The function is then re-called to re-prompt for a legal value.
After inputting an illegal value and then re-entering a legal value, it is the old illegal value that is retained and returned to the main program.
Can anyone tell me why the code is retaining this old value. I cannot see how it is possible.