ResolveScriptObject |
Type | statement |
Dictionary | LCB |
Library | LiveCode Builder |
Syntax | resolve script object <Object>
|
Associations | com.livecode.engine |
Summary | Resolves a string to a script object.
|
Parameters | Name | Type | Description |
---|
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 | Name | Type | Description |
---|
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.
|
Tags | engine,script engine |