Lesson 6: INTRO TO PROGRAMMING ArcObjects (PART 2)
In Lesson 6, we learned about the usage of For/Next and Do Until/While loops within ArcGIS. Code-wise, we also learned how to update the Table of Contents using a Do Until loop, and also how to refresh the Active View. Modularizing our code was another important method that we refined in this project. Proper headings, alignment, spacing and naming of local variables are vital parts of modularized code and comments. Finally, we also learned about how to use the VB Editor interface itself. Step Into, Step Out, Breakpoints, and other tools are important ways of troubleshooting certain sections of code and individual functions in order to see what each piece of code does, in addition to finding errors and bugs. The Immediate and Locals windows are also vital tools when debugging your code.
As far as the exercise itself, the ZoomCall function I had to write was a little tricky to figure out. Additionally, it was difficult to figure out how to display the zoom results in the Status Bar. This may be due to the fact that I could not get my Zoom menu working again in Lesson 6, after I came back to it a while after starting it. I remember I had this working before, but did not save the code in order to keep it functional. The loops were also a bit tricky to get the hang of.