January 2003
Beginner
696 pages
16h 38m
English
To keep your excitement about macros going, I want to give you some ideas for moving forward with them, and show you a few more code snippets to test in your VSMacros module. Because you created a Try...Catch block, you could create macros for
If...Then...Else blocks
For...Next loops
Variable declarations
While Loops
Almost all classes I write use the System.Data.SqlClient namespace, and maybe the System.IO namespace or System.XML namespace. To add text to the top of your file, you can use the StartOfDocument method, as in Listing 16.7.
Sub StartOfDocumentExample() Dim txt As TextSelection = DTE.ActiveDocument.Selection With ... |
Read now
Unlock full access