LOL -

Dave, whist I can display the DEC value using and LCD using that code, I still can't apply it to a variable that can be worked with,

any ideas... I simply want something like alarmhour= DEC(HEXRTCHour). It seems that whilst you can use DEC to convert and display a value or send a value via coms, you can't directly apply it.