CurrentMarker

Description

Returns or sets a Long value specifying the current position in a file by marker number.

Syntax
object.CurrentMarker

Remarks

Before attempting to set CurrentMarker, determine whether a file has markers and their number by using MarkerCount. If a file has no markers, setting CurrentMarker to anything but zero results in an error. Setting CurrentMarker to a number higher than MarkerCount also results in an error.

CurrentMarker always returns the current or last marker, which means the actual file position may be either at the current marker or before the next marker. Markers are numbered beginning at one, so if a file has markers, you can set CurrentMarker to zero to change the file position to zero.

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

Before FileName is set, CurrentMarker returns zero.

See Also

CanScan, CanSeek, CurrentPosition, MarkerCount, Stop

Return to Player Control Reference.

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