PercentComplete Property

This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.

Returns a Long value that represents the completed portion of the current operation. This property is supported only in the RecordsetSaveProgress event. Read-only.

expression.PercentComplete

expression   Required. An expression that returns a DSCEventInfo object.

Remarks

Use this property with the RecordsetSaveProgress event to update a control in the container, such as the status bar.

Using this property with an unsupported event will result in a run-time error.

Example

This example uses the RecordsetSaveProgess event to update the Microsoft Internet Explorer's status bar when the recordset contained by the DataSourceControl object is saved.

  Sub MSODSC_RecordsetSaveProgress(DSCEventInfo)

    ' Update the status bar with the current
    ' completion percentage.
    Window.Status = DSCEventInfo.PercentComplete

    ' Check to see if the save has been completed.
    If DSCEventInfo.PercentComplete = 100 then

        ' Clear the status bar when the save is complete.
        Window.Status = ""
    End If

End Sub