Index Property (AProgram)

Returns the index of the current object in its parent object.

Syntax

 [ lIndex = ] Object.Index

The Index property syntax has the following parts:

 

Name

Type

Description

Object

AProgram

AProgram object

lIndex

Long

An integer specifying the index of the current object in its parent object.

Comments

The default value is 0.

Example

The following statement stops running the current program and starts execution at the beginning of the next program.

Run App.Programs(Program.Index+1)

Applies to

AProgram

See Also

FileName