Recipe 2.10. Testing an Application s Command Line

Recipe 2.10. Testing an Application's Command Line


You have written an application that supports various custom command-line arguments, and you'd like to test the argument-parsing code from within the development environment.


Use the "Command line arguments" field in the Project Properties window to enter or modify the temporary testing command-line arguments.


You can test this code by setting a temporary command-line argument string for use in your program:

  1. Access the Debug tab of the Project Properties window.

  2. Type your temporary command line in the "Command line arguments" field.

This temporary argument string is used only when running programs within the Visual Studio development environment.

Visual Basic 2005 Cookbook(c) Solutions for VB 2005 Programmers
Visual Basic 2005 Cookbook: Solutions for VB 2005 Programmers (Cookbooks (OReilly))
ISBN: 0596101775
EAN: 2147483647
Year: 2006
Pages: 400

Similar book on Amazon © 2008-2017.
If you may any questions please contact us: