You are here: AxTools > CodeSMART 2007 for VB6 > Documentation > User's Guide > Code Flow > Using the Code Flow Tool
While browsing this page, why not start downloading the evaluation setup kit (direct download, no questions asked).

Using the Code Flow Explorer Tool

The CodeSMART Code Flow Explorer tool can be used as a separate tool, to parse multiple methods, present inside your code, in the dedicated Flow pane, or in conjunction with the CodeSMART Project Explorer.

To show code flow in the Code Flow Explorer pane:

  1. Open a code window and place the cursor inside a method body.
  2. Open the CodeSMART Project Explorer window and click on the Flow pane.
  3. Click the Parse the current member button from the Flow pane toolbar. A member node containing the code flow will be added to the tree. This node contains all the conditional and code control flow blocks detected in the parsed method.
    Double clicking a node in the tree will jump you to its exact code location.
    Code Flow
  4. By design most code control blocks are parsed and displayed: conditional blocks, loops, branches etc. Only in this pane you can parse and display some additional code statements by checking them in the Code Flow - Options dialog. This can be accessed through the Options button in the Flow pane toolbar.
    Code Flow Option
    • Assignment Statements ( = operator)
    • Invocation Statements (Call)
    • Control Flow Statements (GoTo, Exit, Stop, End, Return)
    • Set Statements (Set)
    • Dimension Statements(Dim)
    • On Error Statements (On Error)
    • Resume Statements (Resume)

To show code flow in the CodeSMART Project Explorer tree:

  1. Open the CodeSMART Project Explorer window and click on the Project pane.
  2. Select the method node you are interested in.
  3. From the node's context menu select the Build Code Flow entry. A new node (containing the parsed code flow) named Code Flow is added as child of the method node. To improve readability only default control statements are displayed.
    Code Flow in Project Explorer
  4. When you lose your interest in a method's code flow you can delete it using the Remove Code Flow entry in the method node context menu.

 Note

  • The CodeSMART Project Explorer can automatically build the code flow nodes for each method in your project. Just check the Show each member code flow in a child folder node option in the Project Explorer - Behavior section of the CodeSMART Control Panel. The Build Code Flow and Remove Code Flow commands are not available if you turn this option on.
See Also
Code Flow Explorer Overview
Accessing Code Flow Explorer

Back to top

Copyright © 2008 AxTools - CodeSMART 2007 for VB6 - Code Flow Explorer