Application.SetPageScript

Application.SetPageScript ( 

string PageName,

string EventName,

string Script )

Description

Sets the script on a page's event.

Parameters

PageName

(string) The name of the page whose script you want to set.

EventName

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

Script

(string) The script to assign to the specified page's event.

Note: The script specified in this argument will replace any script existing in the event. If you want to append to the event (instead of replacing the script), you must first perform an Application.GetPageScript action.

Returns

Nothing. You can use Application.GetLastError to determine whether this action failed, and why.

See also:  Related Actions