PercentComplete Property

Microsoft Office Web Components Visual Basic

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