Creating VBScript expressions for calculated fields

With calculated fields, VBScript can be used to customize labels for features in the map. For example, you may want to use one font size for small cities' labels and a different font size for larger cities'.

Schritte:
  1. Start ArcMap.
  2. Load data in the map.
  3. Right-click the layer for which you want to create fields and click Properties.

    The Layer Properties dialog box appears.

  4. Click the Calculated Fields tab.
  5. Click the Expression drop-down arrow and choose Edit Expression.

    The Expression Parser dialog box appears.

    Expression Parser with information for calculated representations
  6. Double-click the field you want to use for the fields.
  7. If you are using an array, define the range of values to include in the array.
  8. Define the style and symbol name to use for the field.
  9. Repeat steps 6–8 for each condition you want to add for the calculated field.
  10. Click Verify.
  11. Fix any errors found in the expression.
  12. Repeat steps 10–11 until there are no errors.
  13. Click OK.

    The Expression Parser dialog box appears.

  14. Click OK.

Verwandte Themen


9/17/2010