Skip to main content

scriptStatus

Type

property

Summary

Determine the status of the last script compilation of an object.

Syntax

get the scriptStatus of <object>

Description

Use the scriptStatus property to determine the success of the last compilation of the object's script. Compilation of scripts occurs when a stack is loaded into memory and when the script property is set.

note

The LiveCode IDE script editor uses an intermediate object to test compilation, therefore, the script editor may display compilation errors when the scriptStatus returns empty.

Parameters

NameTypeDescription

object

The name or ID of the object.

Examples

if the scriptStatus of stack "MyStack" is "error" then
edit the script of stack "MyStack"
end if

property: script

Compatibility and Support

Introduced

LiveCode 8.1

OS

mac

windows

linux

ios

android

web

Platforms

desktop

mobile

server

Thank you for your feedback!

Was this page helpful?