Microsoft SDK for Java

getShort

This method of the Variant Class retrieves the value of a VT_I2 Variant.

Syntax

public short getShort();

Return Value

Returns the Variant object's value, which is converted to a Java short.

Exceptions

ClassCastException if the variant type is not VT_I2.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.