XojoScriptLocation.Line

From Xojo Documentation

Read-Only Property (As Integer )
IntegerValue = aXojoScriptLocation.Line

Supported for all project types and targets.

The starting line number of the script error or warning (1-based).