Set code type.