Back to product page

Progress event


Fires during data download/upload.

Syntax

  • Basic
Private Sub object_Progress(Position, Total)
The Progress(object,Position,Total) syntax has these parts:
objectA wodHttpDLX object.
PositionA Long value. Current amount of data received from the server.
TotalA Long value. Total amount of data expected to arrive from the server

Remarks

This event is fired when you post and receive document body from/to server, up to 4.7GB of data. If more than 4.7GB data arrives, Progress64 event will fire instead. Please note that Total argument may be zero - in which case wodHttpDLX is unaware of total number of bytes that will arrive. It depends only on server's 'Content-Length' header if this value is known or not.

When Compression property is set, Position and Total arguments will show size of compressed resource - not original uncompressed one. This is because wodHttpDLX only knows about compressed resource size.

If Request.Resume property is set, Progress event will start at resumed position, not from 0.

Platforms

Windows