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:
-
Open the code module containing the code you want to modify.
-
Place the cursor on the desired code line or select multiple lines
if you want to modify more than a line.
-
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
Back To Top
|