Share via


On

Introduces a response to a run-time error or turns a compiler option on.

In queries, identifies keys for the collections being joined.

Remarks

The On keyword is used in these contexts:

Group Join Clause

Join Clause

On Error Statement

Option Explicit Statement

Option Infer Statement

Option Strict Statement

See Also

Reference

Visual Basic Language Keywords