I am trying to loop through each field in my MS Project file and gather information about that field (custom name is particular). What is the easiest way to do this?
Thanks
I am trying to loop through each field in my MS Project file and gather information about that field (custom name is particular). What is the easiest way to do this?
Thanks
To get the custom name of a field you'll need the field constant and to loop through all fields, you'll need to store a list of all field constants.
Here is a simple example to get you started. I hard-coded an array of the field constants for the Task Text1-30 fields.
Here are a few ways to improve on this: