XojoScriptLocation.EndLine

From Xojo Documentation

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

Supported for all project types and targets.

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