Skip to content

BytesRead

返回目前已读取的字节数,类型为Long。只读。

语法:object.BytesRead

object
必需 求值为AsyncProperty对象的对象表达式。

该值在连续的AsyncReadProgress通知中累积,到AsyncReadComplete触发时达到最终总数。当BytesMax非零时,比率BytesRead / BytesMax给出已完成读取的比例。

示例

此示例使用BytesReadBytesMax记录当前下载进度。

vb
Private Sub UserControl_AsyncReadProgress(AsyncProp As AsyncProperty)
    If AsyncProp.PropertyName = "Picture" Then
        Debug.Print AsyncProp.BytesRead & " / " & AsyncProp.BytesMax
    End If
End Sub

另见

twinBASIC及其LOGO版权为作者"韦恩"所有