ResolveScriptObject

Typestatement
DictionaryLCB
LibraryLiveCode Builder
Syntax
resolve script object <Object>
Associationscom.livecode.engine
Summary

Resolves a string to a script object.

Parameters
NameTypeDescription
Object

The string describing the script object.

Example
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
Values
NameTypeDescription
The result

The resolved script 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.

Tagsengine,script engine