You are here: AxTools > CodeSMART 2007 for VB6 > Documentation > User's Guide > Extended Clipboard > The SMART Copy and Paste
While browsing this page, why not start downloading the evaluation setup kit (direct download, no questions asked).

The SMART Copy-and-Paste

Let's consider the following code piece:

SMART Copy-and-Paste
In case we want to implement the same behavior for Text2 as for Text1 we should copy the 2 lines implementation of Text1_GotFocus, paste it to the Text2_GotFocus routine and manually change all the appearances of Text1 into Text2. Well, in this simple case, we have only 3 replacements to make, but what if there would have been more? To automate this task, CodeSMART has a special tool called the SMART copy-and-paste buffer.

Practically, the SMART copy-and-paste buffer acts as a standard copy-and-paste buffer with SMART bi-directional reserved words (standard parameters) replacement. When some code is selected and the Ctrl+Shift+C keyboard combination is pressed, CodeSMART analyzes the selected code, replaces all occurrences of the particular reserved word with their general equivalent (the reverse-way replacement) and places the resulting code into the SMART buffer. Latter on, when pressing Ctrl+Shift+V somewhere in code, CodeSMART performs the SMART replacement (the direct-way replacement) and pastes the resulting code at the cursor position.

To use the SMART copy-and-paste:

  1. Select the code you want to copy and press the SMART Copy button on the Code Edit Tools toolbar or press the Ctrl+Shift+C keyboard combination.
  2. Select the location where you want to paste the code and press the SMART Paste button on the Code Edit Tools toolbar or press the Ctrl+Shift+V keyboard combination.

See Also

Extended Clipboard Overview
The Multiple Copy-and-Paste Buffers

Back To Top

Copyright © 2008 AxTools - CodeSMART 2007 for VB6 - Extended Clipboard