MMpy.FileStruct.set_field_precision

Syntax

structure.set_field_precision(field_id, field_precision)

Description

Sets the precision of the selected field.

Parameters

Name
Type
Description

field_id 

int ID of the field.
field_precision int Precision to assign to the field.

See Also

MMpy.FileStruct.get_field_precision()

Notes

This will have no meaning for some field types - consult Modify File Structure for more information.

Examples

file = MMpy.File()
file.open(...)
 
structure = file.structure
struct.set_field_name(0, 3)
 
file.structure = struct
file.close()

Resource ID

IDPH_FILESTRUCT_SETFLDPREC