MMpy.FileStruct.get_field_type
Syntax
structure.get_field_type(field_id)
Description
Returns the type of the selected field.
Parameters
Name |
Type |
Description |
---|---|---|
field_id |
int | ID of the field. |
Returns
Type |
Description |
---|---|
MMpy.FieldType |
Type of the field. |
See Also
MMpy.FieldType
MMpy.FileStruct.set_field_type()
Notes
Valid return value choices are:
- MMpy.FieldType.character
- MMpy.FieldType.numeric
- MMpy.FieldType.real
- MMpy.FieldType.float
- MMpy.FieldType.long
- MMpy.FieldType.short
- MMpy.FieldType.unknown
Examples
file = MMpy.File() file.open(...) for i in range(file.structure.fields_count): print(file.structure.get_field_type(i)) file.close()
Resource ID
IDPH_FILESTRUCT_GETFLDTYPE