MMpy.FileStruct.get_field_precision

Syntax

structure.get_field_precision(field_id)

Description

Returns the precision of the selected field.

Parameters

Name
Type
Description

field_id 

int ID of the field.

Returns

Type
Description
int Precision of the field.

See Also

MMpy.FileStruct.set_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(...)
  
for i in range(file.structure.fields_count):
    print(file.structure.get_field_precision(i))
  
file.close()

Resource ID

IDPH_FILESTRUCT_GETFLDPREC