| Message |
Yes, this seems to works, although I'm still struggling to understand the code. Actually, it seems to want to grab the max length for that feature, rather than the max value in the length field in the attribute table (I've edited and these are different), although it correctly chooses the max data in other fields.
I like a deeper understanding of how this code works.
For example does
Set pMxDoc = ThisDocument
point toward a particular file in the shapefile directory, or is it directly referencing the attribute file within Arcmap? The dbf file in this file cluster does not appear to contain attribute data, so I assume that this data is stored in another file.
From this, I surmise that pStatResults.Maximum does not look directly at the data in the attribute table, but at some other file that defines the feature?
Does pData.Field = FieldName look for the header within the attribute table? Are these always strings?
Does Set pData.Cursor = pCursor point to the records in the fields and then loops through them using pFLayer.Search?
Any help in understanding this would be appreciated. |