MediaSet.Item(Integer) Method

Version: Available or changed with runtime version 1.0.

Gets the unique identifier (GUID) of a media object that is assigned to a MediaSet on a record.

Syntax

MediaId :=   MediaSet.Item(Index: Integer)

Parameters

MediaSet
 Type: MediaSet
An instance of the MediaSet data type.

Index
 Type: Integer
Specifies the index number that is assigned to the media object in the MediaSet.

Return Value

MediaId
 Type: Guid
The unique identifier (GUID) of the media object.

Example

For an example of using the Item method, see this example.

See Also

MediaSet Data Type
Get Started with AL
Developing Extensions