MMpy.FileStruct.get_field_width
Syntax
structure.get_field_width(field_id)
Description
Returns the width of the selected field.
Parameters
Name |
Type |
Description |
|---|---|---|
|
field_id |
int |
ID of the field. |
Returns
Type |
Description |
|---|---|
|
int |
Width of the field. |
See Also
MMpy.FileStruct.set_field_width()
Notes
This will have no meaning for some field types - consult the help topic "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_width(i))
file.close()
Resource ID
IDPH_FILESTRUCT_GETFLDWIDTH