Counts the number of media files that are included in the MediaSet of a record. The MediaSet defines a collection of media files that are assigned to a record which can be displayed in the client.

Number := Record.MediaSet.COUNT

Parameters

Record

Type: Record

Specifies the record.

MediaSet

Type: MediaSet

Specifies the MediaSet data type field for the record.

Property Value/Return Value

Type: Integer

The number of media files that are associated with the MediaSet of the record.

Example

This example is counts the number of media files for item No. 1000 in the Item table. The field in the Item table that is used for the MediaSet data type is MediaSetField.

This code requires you to create the following variables..

Variable name DataType Subtype

item

Record

Item

count

Integer

This code requires you to create the following text constants.

Text constant ENU value

Text000

The number of media files: %1

 Copy Code
Item.GET('1000');
    count := (item.MediaSetField.COUNT);
    MESSAGE(Text001,count);

See Also