playFromTo

playFromTo(src: Integer;
           dst: Integer);

The playFromTo method of the MultiMedia class plays the content of the current device or file, starting at the position specified in the src parameter and stopping when the position specified in the dst parameter is reached. Specify the src and dst parameter positions in units of the timeFormat property.

If the useDotNetVersion property is set to true, the playFromTo method is not available and it generates exception 1068 (Feature not available in this release).

The playFromTo method does not invoke continuous loop play when the value of the repeat property is set to true.

The method in the following example shows the use of the playFromTo method.

buttonPlay_click(btn: Button input) updating;
vars
    from, two : Integer;
begin
    from := textBoxFrom.text.Integer;
    two  := textBoxTo.text.Integer;
    if from <> null and two <> null then  // "to" is a JADE reserved word
        multimedia.playFromTo(from, two);
    else
        multimedia.play;
    endif;
end;

See also the play method.