Page.GetObjectType

number Page.GetObjectType ( 

string ObjectName )

Description

Returns the "type" of a given object on a page.

Parameters

ObjectName

(string) The name of the object.

Returns

(number) One of the following values representing the "type" of the object:

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_PLUGIN

40

Plugin object.

If no object can be found with the name you provided, or any other error occurs, -1 is returned. You can use Application.GetLastError to determine whether this action failed, and why.

ResultVariable

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

Availability

Standard

Pro

 

See also:  Related Actions