You are here: AxTools > CodeSMART 2007 for VB6 > Documentation > User's Guide > Error Handling > Inserting and Removing Line Numbers from Command Line
While browsing this page, why not start downloading the evaluation setup kit (direct download, no questions asked).

Inserting and Removing Line Numbers from Command Line

By using CodeSMART it is possible to insert and remove line numbers from the command line. A special tool called CsCmdLine is used for this purpose in conjunction with a switch parameter set.

CsCmdLine command line syntax

    The syntax of a CsCmdLine call is:

    CsCmdLine VbExe=<vb6.exe path and file>, VBProject=<project path and file>, OpSwitch=<CodeSMART operation switch>[, Hidden=<True/False>]

    Each command line switch is explained below:
    • VBExe - should be followed by the "vb6.exe" full path and name string.
    • VBProject - should be followed by the project (where the line numbers must be inserted/removed) full path and name string.
    • OpSwitch - should have one of the following values:
      • /lni - for inserting line numbers
      • /lnr - for removing line numbers

    • Hidden - should specify whether vb6.exe execution should be in hidden mode. The switch is optional and its default value is False.

 Notes

  • The following switches can be used for obtaining information about the CsCmdLine usage: /?, /h, /help
  • The arguments order can be modified. No casing rule is imposed.
See also
Error Handling Overview
Error Handling Schemes And Assignments
Error Handling Scheme Modifiers
Inserting and Removing Error Handlers
Inserting and Removing Line Numbers
Exception Handling Basics
Adding and Removing the Exception Handling Module

Back To Top

Copyright © 2008 AxTools - CodeSMART 2007 for VB6 - Error Handling