Sort Procedures

Top  Previous  Next

The Sort Procedures feature allows you to rearrange the procedures of a source code file sorting them by name, scope, type or manually.

MZ-Tools offers the following ways to show the Sort Procedures window:

  • The Tools | MZ-Tools | Other Utilities | Sort Procedures... menu.
  • The MZ-Tools | Sort Procedures... context menu of a code window.
  • The Other Utilities | Sort Procedures... menu on the MZ-Tools toolbar.
  • The shortcut customized in the Options window, Shortcuts tab.

The Sort Procedures window is the following:

sort_procedures

In this window you can click on a column header to sort the procedures by scope, type or name.

To reorder the procedures manually you can select a procedure or group of procedures in the list and then:

  • Use the buttons with the up and down arrows to move the selected procedures one position.
  • Drag and drop the selected procedures in the list to a new position.
  • Use the Control + Up Arrow and Control + Down Arrow keys of the keyboard to move the selected procedures one position.
  • Use the Control + Page Up and Control + Page Down keys of the keyboard to move the selected procedures to the top or bottom of the list.

When you accept the dialog, the changes are applied to the source code of the file.

Remarks:

  • Using VB6/VBA, if after dropping a block of selected items in the list the selection is changed to a single item instead of remaining as a block (as before the drag and drop operation), update to Visual Basic 6.0 Service Pack 4 or higher. The MSCOMCTL.OCX component of Service Pack 4 seems to fix that bug.

See Also:

Shortcuts Customization