Edit

Share via


On (Visual Basic)

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