MMpy.FileStruct.fields_count
Syntax
structure.fields_count
Description
Property to return the number of fields in the file structure.
Returns
Type |
Description |
---|---|
int | Number of fields in the file structure. |
Notes
Field IDs are 0-based and sequential, meaning you can use Python's range() to iterate over them.
Examples
file = MMpy.File() file.open(...) for i in range(file.structure.fields_count): print(file.structure.get_field_name(i)) file.close()
Resource ID
IDPH_FILESTRUCT_FLDCOUNT