cant make a CHAR and INT

settime == NO_KEY; // <- - - - <<<< this line of code does nothing useful for you, comment the line to see what happens.
try:
// settime == NO_KEY;