Code snippets provide short cuts for frequently used pieces of code.
You can insert snippets in your rules to enter strings of characters that you would normally have to type in.
You access the available snippets from the Snippets area of the Edit Rule dialog box. This area features two tabs:
- The System tab includes a set of predefined snippets, arranged by category. Pause the cursor over each snippet to display a tooltip describing its function in more detail.
- The Custom tab allows you to add your own snippets, or create custom copies of System snippets.
Favorite snippets
Favorites allow you to choose which snippets appear on the System tab. You can mark specific snippets as favorites, and then toggle the display of the list to show only those snippets marked as favorites.
VB.NET Functions and Routines
The System tab provides several categories of predefined snippets.
For example, the Variables snippets enable you to declare variables and create shared variables to use among rules. It includes snippets for “pure” VB.NET functions that allow you to use local (temporary) VB.NET variables in rules.
To access the Math snippets, you can either use the category on the System tab or right-click the rule text area and select Math Functions.
For complete details about the Math, Strings, and Variables categories of snippets, see the VB.NET documentation.