<doc>
  <legacy_id>1551</legacy_id>
  <name>scriptParsingError</name>
  <type>message</type>
  <syntax>
    <example>scriptParsingError <i>errorContents</i></example>
  </syntax>
  <library></library>
  <objects>
    <stack/>
    <card/>
    <group/>
    <field/>
    <button/>
    <graphic/>
    <scrollbar/>
    <player/>
    <image/>
  </objects>
  <synonyms>
  </synonyms>
  <classification>
    <category>Writing LiveCode</category>
  </classification>
  <references>
    <message tag="errorDialog">errorDialog Message</message>
    <property tag="lockErrorDialogs">lockErrorDialogs Property</property>
  </references>
  <history>
    <introduced version="1.0">Added.</introduced>
    <changed version="1.1"></changed>
    <removed version="2.6.1">No longer present.</removed>
  </history>
  <platforms>
    <mac/>
    <windows/>
    <linux/>
    <ios/>
    <android/>
  </platforms>
  <classes>
    <desktop/>
    <server/>
    <web/>
    <mobile/>
  </classes>
  <security>
  </security>
  <summary>Sent to an <glossary tag="object">object</glossary> when its <property tag="script">script</property> cannot be <glossary tag="compile">compiled</glossary>.</summary>
  <examples>
  </examples>
  <description>
    <p><b>Note:</b> The <b>scriptParsingError</b> message is no longer sent. Instead, any parse error is now put into <i>the result</i> immediately after setting the script of an object.</p><p/><p>Handle the <b>scriptParsingError</b> <keyword tag="message box">message</keyword> to prevent the standard error window from appearing, when you want to <glossary tag="handle">handle</glossary> the <glossary tag="error">error</glossary> in a custom handler.</p><p/><p><b>Parameters:</b></p><p>The <i>errorContents</i> specifies the details of the problem that caused the <b>scriptParsingError</b> <keyword tag="message box">message</keyword> to be sent.</p><p/><p><b>Comments:</b></p><p>The <b>scriptParsingError</b> <keyword tag="message box">message</keyword> is sent when a <glossary tag="compile error">compile error</glossary> occurs. If the <property tag="script">script</property> contains an <glossary tag="execution error">execution error</glossary>, the <message tag="errorDialog">errorDialog</message> <keyword tag="message box">message</keyword> is sent instead when the <glossary tag="handler">handler</glossary> containing the <glossary tag="error">error</glossary> attempts to run.</p><p/><p>A list of possible compile errors is contained in the "cScriptErrors" property of the first card of the stack "revErrorDisplay". You can view the list with the following statement:</p><p/><p>  answer the cScriptErrors of card 1 of stack "revErrorDisplay"</p><p/><p><b>Note:</b> The exact <function tag="format">format</function> of the<b> </b><i>errorContents</i> may change from release to release.</p><p/><p><b>Changes:</b></p><p>The <i>errorContents</i> parameter was introduced in version 1.1. In previous versions, this information was stored in the <href tag="dictionary/property/2463.xml">scriptError</href> <glossary tag="property">property</glossary>.</p>
  </description>
</doc>