CurrentPosition

Description

Returns or sets a Double value specifying the current position in a file by time.

Syntax
object.CurrentPosition

Remarks

Before attempting to set CurrentPosition, determine the length of the file in seconds by using Duration.

The current file must be stopped before you can set CurrentPosition.

Before FileName is set, CurrentPosition returns zero.

If CanSeek is False, setting CurrentPosition to any value besides zero results in an error.

Use CurrentPosition to rewind a file after Stop has been called.


     nsfile1.Stop
	nsfile1.CurrentPosition = 0

See Also

CanScan, CanSeek, CurrentMarker, Duration, Stop

Return to Player Control Reference.

© 1997 Microsoft Corporation. All rights reserved. Terms of Use.