position

Type: Integer

Availability: Read or write at any time

The position property of the MultiMedia class contains the current position of the medium with the content of the device.

The units for the position value depend on the time format of the device. For details, see the timeFormat property.

The default value is the current value of the content, which is initially zero (0).

The following example shows the use of the position property.

backtrack_click(btn: Button input) updating;
vars
    track : Integer;
begin
    track           := currentTrack;
    if track > 1 then
        track       := track - 1;
        cd.position := trackPosition(track);
    endif;
end;