Web.SetProperties

Web.SetProperties ( 

string ObjectName,

table  Properties )

Description

Sets the properties of a web object.

Parameters

ObjectName

(string) The name of the web object.

Properties

(table) A table containing the web object's properties indexed by the following keys:

KEY

TYPE

DESCRIPTION

URL

string

The URL to load into the web object

Enabled

boolean

True if the web object should be enabled, false if it should not be.

Visible

boolean

True if the web object should be visible, false if it should not be.

X

number

The horizontal position (in pixels) of the top left corner of the web object in relation to the current page.

Note: The top left corner of the current page has an X value of 0

Y

number

The vertical position (in pixels) of the top left corner of the web object in relation to the current page.

Note: The top left corner of the current page has a Y value of 0

Width

number

The width (in pixels) of the web object.

Height

number

The height (in pixels) of the web object.

Returns

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

See also:  Related Actions