Select Case Assistant For Enum Expressions

Top  Previous  Next

The Select Case Assistant For Enum feature allows you to create quickly the block of Case statements for an enum expression.

MZ-Tools offers the following ways to show the Select Case Assistant:

  • The Tools | MZ-Tools | Select Case Assistant... menu.
  • The MZ-Tools | Select Case Assistant... context menu of a code window.
  • The Select Case Assistant button on the MZ-Tools toolbar.
  • The shortcut customized in the Options window, Shortcuts tab.

When you type a statement such as:

 

Select Case m_ctlListView.ColumnHeaders(1).Alignment

and you invoke this feature the Select Case Assistant dialog appears:

select_case_assistant

With this window, you can choose the values of the enum expression which require a separate Case statement. If you leave enum values not selected, a Case Else statement is added.

See Also:

Shortcuts Customization