ResolveScriptObject
Type
statement
Summary
Resolves a string to a script object.
Syntax
resolve script object <Object>
Description
Use the resolve script object statement to obtain a ScriptObject in LiveCode Builder, in order to interact with it.
note
An error is thrown if this syntax is used in a context where access to script objects is not allowed.
Parameters
Name | Type | Description |
---|---|---|
Object | The string describing the script object. |
Examples
variable tObject as ScriptObject
resolve script object "button 1 of card 1 of this stack"
put the result into tObject
if tObject exists then
get property "name" of tObject
log the result
else
log "No such button"
end if