OwnerOfScriptObject

Typeoperator
DictionaryLCB
LibraryLiveCode Builder
Syntax
the owner of <Object>
Associationscom.livecode.engine
Summary

Get the parent object of a script object.

Parameters
NameTypeDescription
Object

An expression that evaluates to a ScriptObject.

Example
public handler MyName() returns String
	get property "short name" of my script object
	return the result
end handler

public handler OnMouseUp() returns nothing
	// Send a message to the widget's parent so it can handle the click
	send "widgetClicked" to the owner of my script object with [ MyName() ]
end handler
Values
NameTypeDescription
The result

The ScriptObject that is the owner of Object.

Description

Use to get the script object that contains a script object.

Note: An error is thrown if the script object does not exist.

Tagsengine,script engine