Thank you but that gives an error in PICBASIC, any other ideas-ill try them -