This method of the Variant Class sets the Variant object to type VT_I2 and clears the previous contents.
public void putShort(short val);
Note The preferred way to create a VT_I2 Variant is to use the following expression:
new Variant(Variant.VariantShort, val)
val | The new value. |