MMpy.File.add_record
Syntax
file.add_record()
Description
Adds a new record to the opened data file at the bottom.
Returns
Type |
Description |
---|---|
bool | Returns True on successfully adding the record, False otherwise. |
See Also
MMpy.File.records_count
Examples
file = MMpy.File() file.open(...) if not file.add_record(): raise RuntimeError('Error adding a new record') field_id = file.get_field_id('VALUE') count = file.records_count file.set_field_value(field_id, count, 'A string value')
Resource ID
IDPH_FILE_ADD_REC