WindowsScript.ErrorText
-----------------------

Returns the Line of the Script that contains the 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.ErrorText"; ScriptID ) 

**MBS**( **"WindowsScript.ErrorText";** /\* Returns the Line of the Script that contains the error. \*/  
**$ScriptID**) /\* The ID of a WindowsScript in memory.e.g. 2 \*/ 

### Parameters

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

### Description

Returns the Line of the Script that contains the error.   
For ex. "FUNCTION myFunction(string" This line of a script is missing a ")" at the end of the line.  
### See also

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

This function is free to use.

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

  
[WindowsScript.ErrorSource](WindowsScriptErrorSource.md) - [WindowsScript.Eval](WindowsScriptEval.md)

[HTML Version](WindowsScriptErrorText.shtml)