def update_pagenumber(self):
for field in record_get_field_instances(self.record, '<STR_LIT>'):<EOL><INDENT>for idx, (key, value) in enumerate(field[<NUM_LIT:0>]):<EOL><INDENT>if key == '<STR_LIT:a>':<EOL><INDENT>if "<STR_LIT>" not in value and value != "<STR_LIT>":<EOL><INDENT>field[<NUM_LIT:0>][idx] = ('<STR_LIT:a>', re.sub(r'<STR_LIT>', '<STR_LIT>', value))<EOL><DEDENT>else:<EOL><INDENT>record_delete_field(self.record, '<STR_LIT>',<EOL>field_position_global=field[<NUM_LIT:4>])<EOL>break<EOL><DEDENT><DEDENT><DEDENT><DEDENT>
300 page number.