DialogEx.GetObjectScript

string DialogEx.GetObjectScript (

string ObjectName,

string EventName )

Description

Returns a string containing the script from an object's event on the current dialog.

Parameters

ObjectName

(string) The name of the object whose script you want to get.

EventName

(string) The name of the event whose script you want as it appears in the script editor dialog. For example "On Click".

Returns

(string) The object's script for the specified event. If an error occurs, an empty string ("") is returned. You can use Application.GetLastError to determine whether this action failed, and why.

ResultVariable

When adding an action with the script editor, you can use this field to specify a variable that the return value will be stored in.

See also: Related Actions