Class

# XojoScriptLocation

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

## Description

Used to indicate information about a location in `XojoScript</api/language/xojo_script/xojoscript>` code.

## Properties

<div class="rst-class">

table-centered_columns_3_and_4

</div>

| Name                                            | Type                               | Read-Only | Shared |
|-------------------------------------------------|------------------------------------|-----------|--------|
| `Character<xojoscriptlocation.character>`       | `Integer</api/data_types/integer>` | ✓         |        |
| `Column<xojoscriptlocation.column>`             | `Integer</api/data_types/integer>` | ✓         |        |
| `EndCharacter<xojoscriptlocation.endcharacter>` | `Integer</api/data_types/integer>` | ✓         |        |
| `EndColumn<xojoscriptlocation.endcolumn>`       | `Integer</api/data_types/integer>` | ✓         |        |
| `EndLine<xojoscriptlocation.endline>`           | `Integer</api/data_types/integer>` | ✓         |        |
| `Line<xojoscriptlocation.line>`                 | `Integer</api/data_types/integer>` | ✓         |        |

## Property descriptions

<div id="xojoscriptlocation.character">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

XojoScriptLocation.Character

**Character** As `Integer</api/data_types/integer>`

> The starting character of the part of the script with an error or warning. Use in conjunction with EndCharacter to highlight the text in the script.
>
> This property is read-only.

<div id="xojoscriptlocation.column">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

XojoScriptLocation.Column

**Column** As `Integer</api/data_types/integer>`

> The starting column of the script error or warning (0-based).
>
> This property is read-only.
>
> If the column value is -1 then that means the entire line has an error (for example, if the syntax is completely invalid).

<div id="xojoscriptlocation.endcharacter">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

XojoScriptLocation.EndCharacter

**EndCharacter** As `Integer</api/data_types/integer>`

> The ending character of the part of the script with an error or warning.
>
> This property is read-only.

<div id="xojoscriptlocation.endcolumn">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

XojoScriptLocation.EndColumn

**EndColumn** As `Integer</api/data_types/integer>`

> The ending column of the script error or warning (0-based).
>
> This property is read-only.
>
> If the column value is -1 then that means the entire line has an error (for example, if the syntax is completely invalid).

<div id="xojoscriptlocation.endline">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

XojoScriptLocation.EndLine

**EndLine** As `Integer</api/data_types/integer>`

> The ending line number of the script error or warning (1-based).
>
> This property is read-only.

<div id="xojoscriptlocation.line">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

XojoScriptLocation.Line

**Line** As `Integer</api/data_types/integer>`

> The starting line number of the script error or warning (1-based).
>
> This property is read-only.

## Compatibility

|                       |                       |
|-----------------------|-----------------------|
| **Project Types**     | Console, Desktop, Web |
| **Operating Systems** | All                   |

<div class="seealso">

`Object</api/data_types/additional_types/object>` parent class; `XojoScript</api/language/xojo_script/xojoscript>`, `XojoScript.Errors<xojoscript.errors>`

</div>
