Retrieves data from in the StateChanged event. Use this method after invoking the Execute method as a GET operation.
Syntax
object.GetChunk( size [,datatype] )
The Get property syntax has these parts:
Part | Description |
object | An object expression that evaluates to an object in the Applies To list. |
size | Required. A long numeric expression that determines the size of the chunk to be retrieved. |
datatype | Optional. An integer that specifies the data type of the retrieved chunk, as shown in Settings below. |
Settings
The settings for datatype are:
Constant | Value | Description |
icString | 0 | Default. Retrieves data as string. |
icByteArray | 1 | Retrieves data as a byte array. |
Return Type
Variant
Remarks
Use the GetChunk method in the StateChanged event. When the State property is icResponseCompleted (12), then use the GetChunk method to retrieve the buffer's contents.