This function clears the caption and the current position of the indicator.
object.ProcessReset
Part | Attribute | Type | Description |
---|---|---|---|
object |
Required | The object always implements the
ISProcessIndicator interface |
Display the process progress in the Profile window.
Dim aProcessIndicator
Dim aStartValue
Dim aEndValue
Dim aCaption
Set aProcessIndicator = Profile.CommonDialog.NewProcessIndicator
aStartValue = 1
aEndValue = 100
aCaption = "The long operation progress"
aProcessIndicator.ProcessStart aStartValue, aEndValue, aCaption
for i = aStartValue to aEndValue
Sleep(20) 'Imitation of the long operation
aProcessIndicator.ProcessValue = i
aProcessIndicator.ProcessReset 'Clear the caption and the current position of the indicator
next