ILEADRasterInetPacket

The ILEADRasterInetPacket represents a LEADTOOLS Internet Data Packet. It contains parameter data sent to an event.

Properties:

Property Name
Data Type
Description
Examples

EnableMethodErrors

VARIANT_BOOL

Specifies whether LEADTOOLS generates runtime exceptions (in addition to method return values). If EnableMethodErrors is TRUE, the runtime exceptions will be generated. If FALSE, they will not be generated.

Visual Basic Example
Visual C++ 5.0 Example

ParamCount

long

Gets/Sets the number of parameters for the packet. Set this to > 0 to set the number of parameters for the packet. Set this to 0 to free all existing parameters. If this property is >0, it must first be set to 0 before changing its value.

Visual Basic Example
Visual C++ 5.0 Example

ParamType (long nIndex)

InetParamType

Gets/Sets the type of the specified parameter. Each parameter sent to the event has a type. Note, you cannot change a non-string type to a string, and you cannot change a string to a non-string type.

Visual Basic Example
Visual C++ 5.0 Example

ParamValue (long nIndex)

VARIANT

Gets/Sets the value of the specified parameter. For each parameter sent to the event, there is a parameter value.

Visual Basic Example
Visual C++ 5.0 Example

Comments

Setting ParamCount to a value greater than 0 allocates the memory for the specified number of parameters. Therefore, if ParamCount is 2, then memory has been allocated for two parameters. In order to change ParamCount to 3, it must first be set to 0 to free the existing parameters and then set to 3 to allocate the memory for the new parameters.