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

Switch Assignment Values

This CodeSMART tool can be used to quickly swap the left side and the right side of an assignment operator (' = '). The operation is very useful when retrieving and setting the values for the same variables (e.g. in reading and writing database fields, reading and writing array values etc.).

To switch the left and the right side of an assignment operator:

  1. Open the code module containing the code you want to modify.
  2. Place the cursor on the desired code line or select multiple lines if you want to modify more than a line.
  3. Select Switch Assignment Values in the code window shortcut menu or in the CodeSMART main menu.

 Notes

  • The result of the operation is strongly dependent on the selection you made at step 2. You should avoid selecting code lines that you do not want to be changed.
  • The code lines that do not include a valid assignment operator (' = ') will remain unchanged.
  • The selected lines can contain line numbers and inline comments.
See also
Code Builders Overview
The Property Builder
The Method Builder
The Collection Class Builder
The SQL/Long String Builder

Back To Top

Copyright © 2008 AxTools - CodeSMART 2007 for VB6 - Code Builders