Page.CreateObject

Page.CreateObject ( 

number ObjectType,

string ObjectName,

table  Properties )

Description

Creates an object on the current page.

Parameters

ObjectType

(number) The type of object to create:

CONSTANT

VALUE

DESCRIPTION

OBJECT_BUTTON

0

Button object.

OBJECT_LABEL

1

Label object.

OBJECT_PARAGRAPH

2

Paragraph object.

OBJECT_IMAGE

3

Image object.

OBJECT_FLASH

4

Flash object.

OBJECT_VIDEO

5

Video object.

OBJECT_WEB

6

Web object.

OBJECT_INPUT

7

Input object.

OBJECT_HOTSPOT

8

Hotspot object.

OBJECT_LISTBOX

9

Listbox object.

OBJECT_COMBOBOX

10

Combobox object.

OBJECT_PROGRESS

11

Progress object.

OBJECT_TREE

12

Tree object.

ObjectName

(string) The name of the object.

Note: This name must not be the name of another object on the page. If an object on the page already exists with the name passed, an error will occur.

Properties

(table) A table of properties you want to set for the object. The contents of this table depends on which object type was specified:

Note: Clicking on the links below will take you to the properties table in each object's SetProperties action.

Returns

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

See also:  Related Actions