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

Removing Custom Code Automatically

CodeSMART is able to automatically remove custom code blocks that were previously inserted using the Insert custom code dialog. In order to remove these blocks they must be delimited by special custom code markup lines. These markup lines are automatically added by CodeSMART if the corresponding option was used when the custom code will be inserted.

'<CSCustomCode> ID
[THE_USER_DEFINED_CUSTOM_CODE...]
'</CSCustomCode> ID
ID represents the numeric ID specified in the Insert custom code dialog box.

To remove previously inserted custom code:

  1. Open the project you want to remove the custom code from, if it is not already opened.
  2. If applicable (depending on the operation scope), open the component you want to remove custom code from and select the target procedure member.
  3. Click the Remove custom code button on the Code Edit Tools toolbar to display the Remove custom code dialog or select the menu entry with the same name from the CodeSMART main menu. Also, you can press the SHIFT+F12 keyboard shortcut with the same effect (quick toolbar and menu references are available).
  4. Custom Code
  5. Specify the removal scope. Depending on the current position in code and the active code or designer window, only valid options are listed.
  6. Specify the numeric ID associated with the custom code whose removal is desired.
  7. Specify if you want to remove all the occurrences of the custom code which have the same ID. If you uncheck this option CodeSMART will remove only the first occurrence of a custom code with the specified ID.
  8. Press Begin to start the operation.

 Notes

  • All the code lines between the two markup lines will be permanently deleted. To avoid accidental removing of your code it is indicated that you place the code that you don't want to be removed outside the custom code blocks.
  • CodeSMART is not able to remove custom code if one or all of the markup lines are missing.
See also
Custom Code Overview
Inserting Custom Code Automatically

Back To Top

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