WindowsScript.ErrorLine
-----------------------

Returns the error line of the last error.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [WindowsScript](component_WindowsScript.md) | [1.1](newinversion11.md) | ❌ No | ✅ Yes | ❌ No | ✅ Yes, on Windows | ❌ No |

MBS( "WindowsScript.ErrorLine"; ScriptID ) 

**MBS**( **"WindowsScript.ErrorLine";** /\* Returns the error line of the last error. \*/  
**$ScriptID**) /\* The ID of a WindowsScript in memory. \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| ScriptID | The ID of a WindowsScript in memory. |  |

### Description

Returns the error line of the last error.  
For example: "1" would be returned id the script encountered an error on the first line.  
### See also

- [WindowsScript.ErrorClear](WindowsScriptErrorClear.md)
- [WindowsScript.ErrorColumn](WindowsScriptErrorColumn.md)
- [WindowsScript.ErrorNumber](WindowsScriptErrorNumber.md)
- [WindowsScript.ErrorSource](WindowsScriptErrorSource.md)
- [WindowsScript.ErrorText](WindowsScriptErrorText.md)

This function is free to use.

Created 18th August 2014 , last changed 18th August 2014

  
[WindowsScript.ErrorDescription](WindowsScriptErrorDescription.md) - [WindowsScript.ErrorNumber](WindowsScriptErrorNumber.md)

[HTML Version](WindowsScriptErrorLine.shtml)