| Building a Console Application in VB for the Alibre Design API - Adding Comments |
|
|
Page 6 of 14 Adding CommentsComments make code easier to read and help you remember what you were thinking and doing when you revisit your code later. They don't hurt the performance of the application at all, so it's wise to include as many comments as necessary to tell the whole story. In Visual Basic you indicate that a line will be a comment by starting it with an apostrophe or single quote. Add a comment right above "Sub Main()" that describes how we intend this application to be called. In this case we're looking for some command line arguments, so this line will provide an example of how it can be called. It should look something like this when you're done. Module Module1 ' Use the form "MyApp.exe -out:D:\MyOutput.txt -conf -count" Sub Main() |
|
| Last Updated ( Monday, 28 January 2008 16:22 ) |
