- In ArcMap, right-click the layer in the table of contents that you want to hatch and click Properties.
 - Click the Hatches tab.
 - If necessary, follow steps 3 through 15 for hatching features in a layer.
 - Click the hatch definition of your choice.
 - Make sure the Label these hatches check box is checked.
 - Click Label Settings.
 - Click Build a text expression.
 - Click Expression.
 - Check Advanced.
 - Type a VBScript or JavaScript expression. Find an example VBScript in About manipulating the text on hatches.
 
ArcMap automatically creates a FindLabel function in your code. FindLabel should evaluate to a string.